Its all about symbols that loaded into memory in the debug process.
sometimes moving with F10 takes time , and looks like vscode screen is freezing.
to fix this issue and get much better vscode debug performance follow the next steps:
add to launch.json file as follow the next section, make sure in the exceptionList you have your brand so file .
the section below prevent loading extra symbols that you don't need to debug.
"loadAll": false,
"exceptionList": "libMyShared.so"
},
to work with gdb command line make sure all the symbolic will not loaded , the default is ON.
the next parameter control such behavior
in gdb type 'set auto-solib-add off' - disabled loading any symbolic files.
you can start your program
and when your SO files loaded , you can CTRL-C
and use the share command to load your so symbolic file.
share /path/mysofile.so
option 2 : put in your program the next line
__asm__ volatile("int $0x03");
its will break into your gdb and use share command to load your symbolic .
Advanced Debugging with GDB - nice video
enjoy
Yaniv Tzanany
No comments:
Post a Comment