-
Notifications
You must be signed in to change notification settings - Fork 341
TTD Mac OS Sierra using Visual Studio Code #208
Comments
@mrkmarron Can you take a look at this issue? |
Hi and thanks for the detailed report. From my investigation it looks like there are 2 issues.
Thanks and please let me know if this unblocks you. |
@JackTheRipper Were you able to work around this issue? |
Hi @kfarnung, it's pretty unstable: sometimes it works some other times it doesn't. But I think it's because I am using Babel. We can close the issue. |
@kfarnung : I performed a new test with the same scenario as the one I described with the last version you released (v9.0.0-nightly201706277c8ccf55a7). Here is the error I have when running in record mode:
|
@JackTheRipper This looks like chakra-core/ChakraCore#2789 |
Another issue with Mocha is that internally it spawns processes. Could it affect the record mode as well? |
Hmm, @kfarnung shouldn't #285 have fixed the issue around child processes that seems to be affecting @JackTheRipper when he's using mocha? |
Yup, that should have taken care of the spawning a new process issue. The one potential issue is that triggering a trace in the child process might be tricky (if it doesn't crash on its own). The traces should all have the PID in the file name now for identification. |
Hi @digitalinfinity following our discussion today I will give a new try without JSDom. I am using Babel as well for my tests. As far as I understood from what @mrkmarron said I might only face an issue with the source-maps. The feature for supporting the JS generators is already tracked (it's what is causing the issue). If it works then I will close the issue. |
Hi @JackTheRipper - did you get a chance to try this without JSDom? |
Hi,
I have noticed an issue on Mac OS Sierra when using the time travel debugging.
I am using the test framework
mocha
.When running my test I use the following command line:
The output:
In VSC, I have the following configuration in my
launch.json
file:When I run the configuration in VSC here the output in the terminal:
/Users/JBaudin/.nvm/versions/node/v8.0.2/bin/node --debug-brk=47631 --debug --nolazy --replay-debug=/Users/JBaudin/Documents/workspace/frint-samples/kitchensink/widget-counter/node_modules/mocha/bin/_diagnosticTraces/emitOnExit_code-12 --break-first kitchensink/widget-counter/node_modules/mocha/bin/_mocha --compilers js:babel-register /Users/JBaudin/Documents/workspace/frint-samples/kitchensink/widget-counter/test/components/Root.spec.js Starting replay/debug using log in /Users/JBaudin/Documents/workspace/frint-samples/kitchensink/widget-counter/node_modules/mocha/bin/_diagnosticTraces/emitOnExit_code-12 (node:67598) [DEP0062] DeprecationWarning: node --debug is deprecated. Please use node --inspect instead. Debugger listening on 127.0.0.1:47631 TTD assert failed: We probably forgot to update the vtable with a tag we added.
I tried to run the same test using the
mocha
binary instead of_mocha
.I was able to use the TTD until the
mocha
script spawn_mocha
.The problem is that I cannot access my tests for debugging.
Here are the traces:
emitOnExit_code-1.zip
Here is the component I am testing: https://gist.github.com/jackTheRipper/c52a934ee68b753a80faf201d817d05d
Here is my test:
https://gist.github.com/jackTheRipper/40c0dd7aadc9bb63fa7611050c2d8aae
My guess is that the creation of a sub-process or a worker by the script is not handled that well by the
--record
flag.If I use a configuration file (using the flag
--opts
) I have a segmentation fault.Commands:
I think the error is related to the bootstrap file.
Here is the opts file:
Here the bootstrap file:
The text was updated successfully, but these errors were encountered: