-
Notifications
You must be signed in to change notification settings - Fork 9
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
is support debug when use with esbuild? #40
Comments
Could you give an example for what you’re trying to do? Debugging works but if you’re running the code in a browser vscode has to connect to the browser and this needs setting up |
Or it’s it just sourcemapping? |
Just use your three.js example to test
…On Sat, 4 Jul 2020, 15:56 George Corney, ***@***.***> wrote:
Or it’s it just sourcemapping?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFWWIFFOYEQLF35756BM33RZ3OCBANCNFSM4OQIAHBQ>
.
|
I mean how are you trying to debug? Are you trying to debug using vscode's debugging tool? The code is executed in a browser, vscode cannot debug anything running in a browser unless it's been setup to do so |
build.hxml
cd bin & anywehre then
|
Try adding source maps with
|
still not work ,after add --sourcemap ,and generate bundle.js.map BTW,is possible without esbuild? I don't want embed js engine to my app. and use some of cdn three.js version and share with other app |
It's possible without esbuild – use the types the package in |
That implies not all three types are coming from three.*, double check you haven't missed any Feel free to zip the project and post here and I'll check too |
Hey :) – so there's currently a bug in esbuild where the haxe generated paths break when they get copied into esbuild Likely not too complex to fix but I need to learn some Go lang first :P |
can't wait you fixed this bug as soon as possible. |
It’s not something I need in the short term and I’m unlikely to fix with my current work load I’d recommend exploring how to fix in esbuild (or the haxe compiler by avoiding the file:/// paths) you can make it work manually by replacing file:/ with file:/// in the generate .map file |
you mean repacing file:/ in main.js.map or bundle.js.map in main.js ,it's already gen file:/// I re-add file:/// to bundle.js.map still does not work. |
When you compile with It would probably be best simpler to fix in esbuild however |
but I still can't debug jump into *.hx file, only debug in main.js . current bundle.js.map sources field have no 'file:/' or something else like .. {
"version": 3,
"sources": ["node_modules\\three\\build\\three.js", "node_modules\\poly2tri\\dist\\version.json", "node_modules\\poly2tri\\src\\xy.js", "node_modules\\poly2tri\\src\\pointerror.js", "node_modules\\poly2tri\\src\\point.js", "node_modules\\poly2tri\\src\\triangle.js", "node_modules\\poly2tri\\src\\assert.js", "node_modules\\poly2tri\\src\\advancingfront.js", "node_modules\\poly2tri\\src\\utils.js", "node_modules\\poly2tri\\src\\sweep.js", "node_modules\\poly2tri\\src\\sweepcontext.js", "node_modules\\poly2tri\\src\\poly2tri.js", "node_modules\\three\\build\\three.module.js", "node_modules\\three\\examples\\jsm\\exporters\\GLTFExporter.js", "node_modules\\three\\examples\\jsm\\lines\\LineSegmentsGeometry.js", "node_modules\\three\\examples\\jsm\\lines\\LineMaterial.js", "node_modules\\three\\examples\\jsm\\lines\\LineSegments2.js", "node_modules\\three\\examples\\jsm\\lines\\LineGeometry.js", "node_modules\\three\\examples\\jsm\\lines\\Line2.js", "dist\\main.js"], I try to readd file://mypath still not work. |
finally,I found the reason why doesn't work, I have to update esbuild to the last version . in your example,your esbuild version is too old to use . "devDependencies": {
"esbuild": "^0.14.3",
"dts2hx": "*"
}, thanks agin. |
may help somebody else |
from your three.js example, it seems not to support debug in vs code.
what's wrong?
The text was updated successfully, but these errors were encountered: