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
Debug console error Unimplemented console API: undefined #201
Comments
When do you get that message? Is VSCode still in debug mode, with the arrow and the pause symbol etc? Is that message printed to the debug console, and is it the only thing there? If you try debugging the Simulate target, does that have the same error? |
error message is printing to the debug console instead of console.log messages and error codes. yes VSCode is still in debug mode and the app works fine. i am having the same result with "Simulate Android in browser" option. on android emulator everything works fine. i tried to reinstall the extension but it doesn't work.
this is my launch.json file:
thank you |
Ah, it looks like you've hit a bug in vscode-chrome-debug, the underlying library which we use to debug the webviews: https://github.com/Microsoft/vscode-chrome-debug-core/blob/master/src/chrome/consoleHelper.ts#L46 It would be helpful if you could make a tweak to the extension so we can try to find out the cause:
Once you've done that, please let us know what errors you get now. There may be some change or edge-case in the debugging protocol that we weren't aware of. |
thank you for your quick response MSLaguana. here are the messages.
|
I also encounter this problem App successfully launched Unimplemented console API: undefinedUnfortunately for me I have real bug(s) in my code so this attempt at debugging on my phone gives me a blank screen. |
For a temporary workaround, you can follow the steps in #201 (comment) and then set something like |
AHHHH that worked..... MSLaguana
|
Yes I have encountered the same as issue and have done the @MSLanguana workaround which I think is very "dirty". Like @julientype I cannot do break points, I get a grey "breakpoint unverified" in the left gutter. Please can someone in Microsoft help/fix ... please. |
Is this a fix that is going to be released anytime soon? |
It's something that we're looking into, but it isn't as simple as you might hope. The correct fix for this is to update a dependency we have to a newer version (vscode-chrome-debug-core specifically) but between the version we use and the latest version there were some breaking changes, so we need to resolve those before we can fix the problem properly. |
Absolutely understandable. Thank you so much @MSLaguana. |
Any news? |
I have a potential fix in #227 but I was intending to test it out a bit more before publishing. If you would like to check out the repo and see if it fixes things for you without introducing other issues, that'd be helpful and give me more confidence in putting out an update with the fix. |
@MSLaguana |
I have installed the last code in my Windows10 and the problem persists. PS but now I cannot attach to the device:
PS2 |
@MSLaguana PS: |
Ah thanks for testing that out. I had been testing with the simulate target, but I had forgotten we had special cases for android and iOS targets. I'll investigate that further and get a fix in. |
I've published a new build which should have these fixes. |
Unimplemented console API: undefined
hello,
I am getting this error message instead of any exception messages or console.log messages when i try to debug ionic cordova project on an android device. App is working fine on device.
do you have any ideas how to solve it?
thank you.
The text was updated successfully, but these errors were encountered: