set source-map - Manual - Structured Text Debugger - The SIMATIC Debugger. Enables debugging source code on the PLC and is needed to run the debugger extension. - Debugger (sdb),tool

Structured Text Debugger CLI Tool (sdb)

Portfolio
SIMATIC AX
Product
Structured Text Debugger
Software version
1.3.6
Edition
11/2024
Language
English (original)
Package Name
@ax/sdb

The 'set source-map' command is used to remap the source path while the debugger is running. Source path remapping is necessary if the location of the source code is changed after downloading the compiled binaries to a SIMATIC 1500 PLC.
The command follows the same logic as the parameters '--baseFolder' and '--remappingPath', which can be set during connection.

set source-map <path-from> <path-to>

\<path-from>
The path on which the original ST data (including debug information) was compiled. The path must be the same as that provided to the 'stc -i'-option when the project was last successfully built.

\<path-to>
The path on which sources should be redirected. This is the directory in which the source code is currently located.