Skip to content
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

Unable to debug Nest.js API #68321

Closed
kgrvr opened this issue Feb 9, 2019 · 5 comments
Closed

Unable to debug Nest.js API #68321

kgrvr opened this issue Feb 9, 2019 · 5 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@kgrvr
Copy link

kgrvr commented Feb 9, 2019

Issue Type: Bug

  • Update to the latest version i.e. v1.31.0

Debugging was working in the previous version, but since when I had updated to the latest version of VSCode, I'm getting issues with debugging my Nest.js API.

When I start my API, the debugger used to open my main.ts file and stops at the first line. Then I used to continue (F5) that breakpoint. Everything used to work fine that ways.
But in the latest version of VSCode, the debugger doesn't open my main.ts file automatically and in my services, it doesn't stop on any breakpoint.

I've set debugger "Auto Attach: On" since I've started working on my project. I haven't had any problems with that until in the recent version.

VS Code version: Code 1.31.0 (7c66f58, 2019-02-05T22:35:56.624Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (4 x 2592)
GPU Status 2d_canvas: enabled
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: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.90GB (8.06GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (35)
Extension Author (truncated) Version
ng-template Ang 0.1.11
clipboard-history Anj 1.0.7
htmltagwrap bra 0.0.7
npm-intellisense chr 1.3.0
path-intellisense chr 1.4.2
vscode-eslint dba 1.8.0
gitlens eam 9.5.0
tslint eg2 1.0.42
vscode-npm-script eg2 0.3.5
vscode-great-icons emm 2.1.46
prettier-vscode esb 1.8.1
beautify Hoo 1.4.8
Angular-BeastCode Mik 7.2.2
dotenv mik 1.0.1
vscode-scss mrm 0.6.2
mssql ms- 1.4.0
csharp ms- 1.17.1
PowerShell ms- 1.11.0
vscode-typescript-tslint-plugin ms- 1.0.0
team ms- 1.144.1
debugger-for-chrome msj 4.11.1
indent-rainbow ode 7.2.4
vscode-docker Pet 0.5.2
vscode-css-peek pra 2.2.0
java red 0.38.0
autoimport ste 1.5.3
code-spell-checker str 1.6.10
vscode-java-debug vsc 0.16.0
vscode-java-dependency vsc 0.3.0
vscode-java-pack vsc 0.5.0
vscode-java-test vsc 0.14.0
vscode-maven vsc 0.14.1
vscode-wakatime Wak 1.2.5
vscode-surround yat 1.0.2
html-css-class-completion Zig 1.18.0

(3 theme extensions excluded)

@kieferrm
Copy link
Member

Might be related to #68127.

@roblourens
Copy link
Member

Can you share their project where this happens? Or set "trace": true in your launch config, try it again, and share the log from the path that it prints in the debug console.

@roblourens
Copy link
Member

roblourens commented Feb 11, 2019

Ok, now I can repro this. It's not a regression on the debug adapter side, but it's more noticeable in vscode now because vscode is not highlighting the current line when it grayed out. But it's not clear what the right thing is for vscode to do. FYI @isidorn

@roblourens roblourens added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Feb 11, 2019
@roblourens roblourens added this to the February 2019 milestone Feb 11, 2019
@roblourens
Copy link
Member

The debug adapter's issue is that the runtime js file and the sourcemapped file have the same name and .ts extension, and that causes some confusion. Trying to fix that, I run into #68480

Trying a simpler workaround, I try to change

frame.source.presentationHint = 'deemphasize';

to

frame.presentationHint = 'deemphasize';

but it seems that this isn't respected, is there a way to do that @isidorn?

@roblourens
Copy link
Member

I am copying the comments to #68127 and closing this as a dupe of that because it has more comments and is older. Sorry for the notification spam @isidorn

@roblourens roblourens removed this from the February 2019 milestone Feb 12, 2019
@roblourens roblourens added *duplicate Issue identified as a duplicate of another issue(s) and removed bug Issue identified by VS Code Team member as probable bug labels Feb 12, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants