![]() ![]() Install the C/C Intellisense extension. Note some level of VSCode familiarity is assumed in the following instructions. However, when I add gdb_lookup.register_printers(gdb.current_objfile()), it throws an error as below, Selvaįile "C:\Users\selva\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\etc\gdb_lookup.py", line 12, in register_printersĪttributeError: 'NoneType' object has no attribute 'pretty_printers' VSCode can be used as front end to GDB that provides a convenient environment to execute and debug your code directly in the editor. Then, I also added import gdb_lookup, it worked which clearly shows that gdb is able to find the scripts in the C:\Users\selva\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\etc. For example, I added print("selva") in gdbinit and gdb printed it. I was able to modify the gdbinit and I could see it is reflecting in the gdb console. Thanks With your help, I was able to understand some more about python scripts. No, mine doesn't look like yours (especially for string) Below is my output, (gdb) p a ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |