-
Notifications
You must be signed in to change notification settings - Fork 251
Debugging
Daniel Imms edited this page Aug 14, 2018
·
4 revisions
-
Download WinDbg: https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86?rtc=1&activetab=pivot%3Aoverviewtab
-
Build and run
WinDbgX.exe node .\examples\fork\index.js
-
One time setup to set paths:
Open
File > Settings
, go toDebugging settings
and set:- Source path to ...\src\win
- Symbol path to ...\build\Debug
-
Break when pty.node is loaded:
sxe ld pty
-
Go (and break at pty.node):
g
-
List modules (verify pty.node is loaded):
lm #
-
Reload symbols:
.reload /f
-
Examine a function:
x pty!PtyStartProcess
You can then open the file by clicking
pty!PtyStartProcess
and...\src\win\pty.cc
links. Set a breakpoint by left clicking the gutter. -
Go:
g