Skip to content

My configurations and extensions I used in VS code to be able to code and debug nasm in Linux using gdb debug

Notifications You must be signed in to change notification settings

ctripxchuang/vscode-nasm-debugging-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vscode nasm Debugging Tutorial

Screenshot

alt text

What it supports:

  • x86 nasm Intel/C library
  • x64 nasm Intel/C library

Requirements

  • VS code
  • gdb
  • x8664assembly (for syntax highlight)
    Install:
    Press F1 inside VS code and type in: ext install fredhappyface.x8664assembly (or search for this extension to install)
  • GDB Debug (for debugging)
    Install:
    F1 inside VS Code and type in: ext install DamianKoper.gdb-debug

Configurations

Put this config folder into your workspace folder

  • task.json: Contains some build task options, default is 'asm64' which is for x64 nasm Intel syntax. You can change which task is default or not.
  • launch.json: Some debug options for correctsponding build task.

Some special notes

Remember to build task befor debug!

How to add breakpoints?

Go to File > Preferences > Settings > Search for "Debug" and tick the AllowBreakpointsEveryWhere.

alt text

Where to type in your user input?

Press ctrl + j and go to the "Debug Console" panel to type in your input! (shown in screenshot above).

Where to watch my registers?

Go to Variables > Registers in the Debug view.

I followrd mainly from newtonsart and add a little more custom configs. Thanks, newtonsart!

Hope it helps!

About

My configurations and extensions I used in VS code to be able to code and debug nasm in Linux using gdb debug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published