debugging in vs code on Windows
Domain
dont_email at empty.com
Tue Oct 17 09:09:26 UTC 2017
On Tuesday, 17 October 2017 at 08:43:33 UTC, Domain wrote:
> On Tuesday, 17 October 2017 at 03:10:52 UTC, Dmitry wrote:
>> On Tuesday, 17 October 2017 at 02:32:49 UTC, Domain wrote:
>>> Can you share your tasks.json and launch.json?
>>
>> tasks.json - I don't have this file.
>> launch.json:
>> {
>> "version": "0.2.0",
>> "configurations": [
>>
>> {
>> "name": "(Windows) Launch",
>> "type": "cppvsdbg",
>> "request": "launch",
>> "program": "${workspaceRoot}\\parser.exe",
>> "args": [],
>> "stopAtEntry": false,
>> "cwd": "${workspaceRoot}",
>> "environment": [],
>> "externalConsole": true
>> }
>> ]
>> }
>>
>> Also I have changed preferences:
>> "debug.allowBreakpointsEverywhere": true,
>>
>> Status bar:
>> x86_64 debug dmd
>
> Thank you very much! I used to use "mago-mi" type
> configuration, and never succeed.
This is my tasks.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
// Run the dub command to do a build or test
"type": "shell",
"command": "dub",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"tasks": [
{
"taskName": "build",
"args": [
"--arch=x86_mscoff",
"--build=debug"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "d",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp":
"^([^(]*)\\((\\d+),\\s*(\\d+)\\):\\s*(Warning|Error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"taskName": "test",
"group": "test",
"problemMatcher": {
"owner": "d",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp":
"^([^(]*)\\((\\d+),\\s*(\\d+)\\):\\s*(Warning|Error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}
And this is my launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit:
https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/app.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"preLaunchTask": "build"
}
]
}
More information about the Digitalmars-d-learn
mailing list