-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug points getting hit but no visual indication when debugging nodejs (mocha tests) #68616
Comments
When this happens could you please open the "Dev Tools" with the "Toggle Developer Tools" action and see whether there are any errors in the console. |
I have the same issue. I am debugging Nest js application and debugger works very strange after VS code update.
|
@Bilchuck When this happens could you please open the "Dev Tools" with the "Toggle Developer Tools" action and see whether there are any errors in the console. |
I have the same problem when trying to debug CRA (Create react app) via Chrome debug extension for VSCode. (just checked prev vscode version 1.30.2 - and it works without problems) |
@weinand There are no errors in console |
@weinand |
@weinand But I can use debugger port provided by VS code in chrome inspector and debug there without problems. |
@Bilchuck for evaluating local variables in the debug console, you will have to use the correct JS name. Some TS names are translated into different JS names. You can find the correct JS names in the variables view. This functionality hasn't changed in VS Code 1.31 |
@Bilchuck this issue is about "Debug points getting hit but no visual indication when debugging nodejs". In your screenshot I'm seeing a "visual indication". So your issue seems to be unrelated. Please file a new issue. |
I just explored the issue wider. |
Since we are not able to reproduce this problem, I cannot really investigate. @Bilchuck please provide information about your platform, what version of node.js you are using and reproducible steps. |
@weinand
My env:
node: v10.9.0 |
how reproduce:
|
@Bilchuck thanks for the steps (which do not really explain how and when the debugger is started). These steps actually let me debug:
|
With the steps from above I see the following issue: The breakpoint is hit but there is no visual indication in the editor (no highlighted line). I have a guess what the problem is and I think I have found a workaround: Just add a With this the location is highlighted properly: |
@Bilchuck @biogenez @techyrajeev could you please verify that the workaround fixes the problem for you? |
@isidorn this issue has probably been introduced with the work on #64193 and/or #65012. @techyrajeev please don't close this issue. There is severe bug. And I've just provided a workaround, not a fix. |
@weinand |
@roblourens I wonder why in the repro from above the top frame shows as deemphasized (see screencasts). The frame is a TS frame and that by definition needs a working source map, and that should not result in a "deemphasized" hint. |
Yeah this is #68127 (comment). Thanks for doing so much investigation though... Disabling smartStep in this case is the only workaround I have. |
Note to self: make sure to reveal the stack frame in tree when being selected. |
@weinand Thanks for your explanation! I encountered same issue when debugging with |
@weinand thanks for the great repro steps |
@isidorn this needs to be verified for all issues resolved as duplicates (e.g. C++, PowerShell). |
The code is the same for all debug types, I would just like that we verify for one. So no test item needed. |
@isidorn sure, the fix is debug type independent (which is true for 99.9% of all VS Code fixes). The question is whether your fix really covers all issues we were seeing in different debuggers. This cannot be proved by just verifying for node-debug. |
@weinand I have removed the duplicate from those issues so they also get verified |
I'm getting the same error when doing Jest tests with the VSCode extension. Problem is that by default when I click "debug" in the code lens, VSCode just auto attaches to the jest tester:
It hits my breakpoints and clicking on the top stack frame entry does reveal the line. The top entry in the stack is greyed out by default. EDIT: creating a manual debug config with smartStep off works. (VSCode 1.31.1) |
@gombosg it's not fixed in 1.31. Please try in Insiders |
Issue Type: Bug
When I try to debug node js app I see execution stops at certain breakpoints which are set but vscode doesn't highlight that point.
Launch.json for debugging
VS Code version: Code 1.31.1 (1b8e830, 2019-02-12T02:16:38.656Z)
OS version: Darwin x64 17.7.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (23)
The text was updated successfully, but these errors were encountered: