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

Breakpoint not hit #2284

Closed
dbaeumer opened this issue Jan 26, 2016 · 4 comments
Closed

Breakpoint not hit #2284

dbaeumer opened this issue Jan 26, 2016 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Milestone

Comments

@dbaeumer
Copy link
Member

Test case:

var i = 1000;
var s = "Hello Workd".repeat(8);

var obj = {
    name: "Dirk",
    surname: "Baeumer",
    address: {
        street: "Laendischstrasse",
        number: 5,
        optional: {
            type: "house"
        }
    }
}

console.log(obj);

console.log(obj);

Have a breakpoint on line 16 & 18. Run debugger.

  • observe: first breakpoint is hit.
  • press F10
  • observe: second breakpoint is not hit

My tsconfig.json is:

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es6",
        "sourceMap": true
    }
}

task.json:

{
    "version": "0.1.0",
    "command": "tsc",
    "isShellCommand": true,
    "isWatching": true,
    "showOutput": "always",
    "args": [
        "--watch"
    ],
    "problemMatcher": {
        "base": "$tsc-watch"
    }
}

And launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/test.js",
            "stopOnEntry": false,
            "args": [],
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": null,
            "runtimeArgs": [
                "--nolazy"
            ],
            "env": {
                "NODE_ENV": "development"
            },
            "externalConsole": false,
            "sourceMaps": true,
            "outDir": null
        },
        {
            "name": "Attach",
            "type": "node",
            "request": "attach",
            "port": 5858,
            "sourceMaps": false,
            "outDir": null
        }
    ]
}

node version: 4.2.6 

@dbaeumer dbaeumer added the bug Issue identified by VS Code Team member as probable bug label Jan 26, 2016
@isidorn isidorn added this to the Jan 2016 milestone Jan 26, 2016
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jan 26, 2016
@isidorn
Copy link
Contributor

isidorn commented Jan 26, 2016

@weinand can you please check this, my suspision is that it is some source map issue

@isidorn isidorn assigned weinand and unassigned isidorn Jan 26, 2016
@weinand
Copy link
Contributor

weinand commented Jan 27, 2016

@dbaeumer node 4.2.6 crashes when hitting the second console.log(). It is independent from the operating system and I can reproduce this in node-inspector.

@weinand weinand closed this as completed Jan 27, 2016
@weinand weinand added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Jan 27, 2016
@weinand
Copy link
Contributor

weinand commented Jan 27, 2016

I've filed this issue against node: nodejs/node#4917

@dbaeumer dbaeumer added the verified Verification succeeded label Jan 28, 2016
@Raathigesh
Copy link

Could you please check after setting the outDirin launch.json ? I had the same issue and setting the outDirfixed it but I'm running node 4.1.2 though.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants