Comments (6)
Can you use sourceMapPathOverrides to add a mapping from ...foo:bar... to ...foo-bar... or however it is?
from vscode-node-debug.
Wohoo! You really prepared for a lot of generated-framework-source sh*t features ๐
I added two mappings and it works like a charm:
"sourceMapPathOverrides": {
"meteor://๐ปapp/packages/assistify:*": "${workspaceFolder}/packages/assistify-*",
"meteor://๐ปapp/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
}
Thanks a ton, saved me a lot of frustration!
Oliver
P.s.: I'd be delighted if you supported regex in addition to glob with parameters which can be used at the replacing side.
from vscode-node-debug.
What version of Meteor are you using? We had some issues, which were resolved in 1.6, that triggers me ud to write this guide: https://github.com/Microsoft/vscode-recipes/tree/master/meteor
from vscode-node-debug.
@auchenberg weโre using Meteor 1.6.0.1 at this vier moment and node 8.9.4.
i know the short guide (thanks a ton) and also tried those very intuitive launch configurable (which made me think that you somehow had to do a lot specificall for Meteor).
I also successfully debugged the sample app.
I really think it has to do something with the colons. Iโll try just renaming the folder on the disk and revert to you afterwards, this will verify/falsify my hypothesis
from vscode-node-debug.
yup - verified ๐
I renamed the package in the package-definition to that it matches the path on disk to assistify-ai
.
Now, a breakpoint in a server-side-file of this packages turned red and the debugger stops as expected.
One could argue this not being an issue of the debugger but more a systematic issue of the environment. And I couldn't disagree much. However, this problem is widespread due to historic reasons which are still a recommendation:
But wait, what's up with the colon convention in the demo?
Prior to Meteor v1.1.0, Meteor used to create packages using the colon syntax to match how it references packages on the package server. As v1.1.0 introduced Windows support, they had to drop the colon syntax when creating folders as Windows machines don't support it. Bonk. Keep in mind: you still add packages using the colon syntax in your terminal like meteor add author:package.
So a bit of heuristic on finding the proper file (once the one guessed is not found in _findGeneratedToSourceMapping
). It's really about the colon. Assuming the map states package:name
, the target file usually resides in a folder called either package-name
or simply name
. Do you think this is manageable?
Renaming the folders is not an option since this was very disruptive to the code base :(
from vscode-node-debug.
Glad that worked, yeah regex replace would help in this situation, but that level of control isn't often needed.
from vscode-node-debug.
Related Issues (20)
- Debug restart, breakpoint will automatically jump to unknown line HOT 4
- "legacy" is still the default for attach
- Local root property in nested config file HOT 1
- Need to ensure that log folder exists HOT 1
- smartStep should only skip unmapped lines in files that have sourcemaps
- Simplify generated launch.json HOT 3
- Cannot embed node-debug in other module layouts HOT 1
- Releases do not contain vsix extention HOT 8
- Support showing numbers as hex HOT 1
- Unable to do npm i HOT 1
- Calculate name for attached processes HOT 1
- debug.node.autoAttach=0 results in high CPU on Windows HOT 2
- autoAttachChildProcesses looses uncaught exception output HOT 1
- Auto Attach not working in VsCode when debugging a simple node js application HOT 2
- Cannot view static variables when debuger is paused HOT 1
- SIGKILL sent instead of SIGINT on stop of Debug HOT 1
- Support Workspace Trust HOT 1
- Support virtual workspaces
- Auto attach fails when pid is greater than 6 digits. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-node-debug.