In case you want to use Linux, here is what you can do:
-
Edit the .pyconf file in PROJECT/applications and set debug’ to ‘yes’
-
compile the module, e.g. GUI:
./sat/sat prepare SALOME-9.12.0-native -p GUI
./sat/sat -t compile SALOME-9.12.0-native -p GUI --clean_all
-
check that you can track processes. If not check SF-1160
-
install two additional VSCode extensions:
- C/C++ IntelliSense, debugging, and code browsing: provides a debug interface to gdb,lldb, etc.
- Task Shell input, allows to retrieve the pid which can then be attached to gdb.
Note that if the extensions are not found in VSCode, you need to download them by clicking on “Download extension” on the extension pag and in a console type:
code --install-extension ext.vsix
-
Then, in the
.vscode
directory in your workspace, you need to attach the launch.json file at the end of this thread. -
Finally, launch SALOME, and in the vscode debug interface select
Attach to PID
.
launch.json (828 Bytes)
If you come to some useful approach, feel free to share it.
Regards.