-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot read property 'toLowerCase' of undefined #650
Comments
From @mjbvz on April 19, 2017 21:42 I've also seen this error. Here's the only trace I see:
|
@tiamattia @mjbvz We should have a fix in our next update. In the mean time you can try working around this by changing the code that calls the toLower at |
Hi @sean-mcmanus , thanks for the tip, however just changing those files for me does not fix the issue. Is there anything I need to do after changing those files? |
@marcoconti83 Hmm...that should be it. You have to restart your VS Code instance (and make sure you're changing the correct file, i.e. if you're on Insiders or not). What error are you getting now? When I change the < to > in the javascript, and then start an Attach, I see the list in reverse order. Do you see that? From your bug description, it's not clear that we are the cause of the toLowerCase error message, but it sounded like weinand debugged it and thought we were the cause. |
@sean-mcmanus thanks for your reply. After further investigation I believe my issue to be unrelated to this. I ended up on the linked original issue (on the vscode repo) by searching for the exact error on a search engine, but I now believe this is caused for me by another, unrelated plugin and not cpptools. Sorry for the mix-up! |
@marcoconti83 Closing this issue. If you need further help, please comment or file a new issue. |
VS keeps state of framelevel when break all occurs. gdb assumes when you break all that the framelevel of current thread is 0. reset the tracking framelevelid in MIEngine to 0 so that we will call -stack-select-frame every time we break all if we are expecting a non-zero framelevel.
From @tiamattia on April 19, 2017 21:24
I'm trying to configure a remote target debugging session. The target is an STM32 microcontroller and the debugging server is OpenOCD.
When launching the debug I get this error: "Cannot read property 'toLowerCase' of undefined"
Steps to Reproduce:
{ "version": "0.2.0", "configurations": [ { "name": "STM32 Attach", "type": "cppdbg", "request": "launch", "program": "${workspaceRoot}/bin/discovery-radio.elf", "args": [], "stopAtEntry": false, "cwd": "${workspaceRoot}", "environment": [], "externalConsole": false, "setupCommands": [ { "text": "target remote localhost:3333" }, { "text": "file ${workspaceRoot}/bin/discovery-radio.elf" }, { "text": "monitor reset halt" } ], "customLaunchSetupCommands": [ { "text": "monitor reset halt" } ], "MIMode": "gdb", "launchCompleteCommand": "exec-continue", "miDebuggerPath": "/usr/bin/arm-miosix-eabi-gdb", "miDebuggerServerAddress": "localhost:3333", "debugServerPath": "/usr/bin/openocd", "debugServerArgs": "-f ${workspaceRoot}/somepath/stm32f4discovery.cfg", "serverStarted": "Info\\ :\\ [\\w\\d\\.]*:\\ hardware", "filterStderr": true } ] }
Launch debug
Copied from original issue: microsoft/vscode#25042
The text was updated successfully, but these errors were encountered: