Skip to content
Permalink
Browse files
fix sourcemap issue in desktop version
  • Loading branch information
weinand committed Sep 15, 2020
1 parent 78ba9cd commit 9144d12c89fc6c79ba45ac8bfa4a978c3e8d799d
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
@@ -7,7 +7,7 @@
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/sampleworkspace"
"${workspaceFolder}/sampleWorkspace"
],
"outFiles": [
"${workspaceFolder}/dist/ext/**/*.js"
@@ -21,7 +21,7 @@
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/sampleworkspace"
"${workspaceFolder}/sampleWebWorkerWorkspace"
],
"outFiles": [
"${workspaceFolder}/dist/web/**/*.js"
@@ -48,7 +48,7 @@ module.exports = /** @type WebpackConfig */ {
filename: 'extension.js',
path: path.resolve(__dirname, '../dist/ext'),
libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: "../[resource-path]",
devtoolModuleFilenameTemplate: "../../[resource-path]"
},
devtool: 'source-map'
}
@@ -0,0 +1,16 @@
{
// 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": [
{
"type": "mock",
"request": "launch",
"name": "Debug test.md",
"program": "${workspaceFolder}/test.md",
"stopOnEntry": true,
"trace": false
}
]
}
File renamed without changes.
@@ -0,0 +1,38 @@
# VS Code Mock Debug

Mock Debug allows to "debug" markdown files (like this).
The text of the markdown is considered the "program to debug" and certain keywords trigger specific functionality:

* if debugging stops on a line, the line becomes a stack in the CALL STACK with the words shown as frames.
* variables are synthetic


Please note: breakpoints are only verified in an active debug session.

* if a line is empty or starts with '+' we don't allow to set a breakpoint but move the breakpoint down
* if a line starts with '-' we don't allow to set a breakpoint but move the breakpoint up
* a breakpoint on a line containing the word 'lazy' is not immediately verified, but only after hitting it once
* Fire events if line has a breakpoint or the word 'exception' is found.
* a line with the pattern `log(xxx)` logs `xxx` to the debug console. If "xxx" is `start` or `end`, a "log group" is started or ended.


log(start)
log(arbitrary line of text)
log(start)
log(arbitrary line of text level 2)
log(start)
log(arbitrary line of text level 3)
log(start)
log(arbitrary line of text level 4)
log(start)
log(arbitrary line of text level 5)
log(another line of text level 5)
log(end)
log(another line of text level 4)
log(end)
log(another line of text level 3)
log(end)
log(another line of text level 2)
log(end)
log(another line of text)
log(end)

0 comments on commit 9144d12

Please sign in to comment.