-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
php debugging #148593
Comments
Otherwise an amazing product. |
I found that I can copy and paste the launch and settings json from another project and this will now show the debug control items. |
Sorry, I don't follow. Can you show screenshots of what working and not working looks like? And what settings do you use to fix it? |
Not sure how I didn't notice that there was a comment on here. Can this case be opened again? In the screen shot you can see that the "run" is not in the menu. It is in the modules. Much of my previous copy and pasting files hasn't worked to get it back. I am now not able to debug this project. I am thinking I need to use sublime. |
Please bring back the debug run button. |
This time I highlighted the debug button. |
So it is thinking it is already connected but it is not. |
Today I ended up taking the global settings.json and copying the content to the .vscode/settings.json. That brought the "run" button back when reloading vscode. |
Thanks for reopening the case. |
Good - Can you share your settings.json and explain exactly what you did? @sbatten that stack above kind of makes it look like a DebugService was created twice in the course of creating the debug view - because the only path to register that extension handler twice is from the DebugService constructor. Any idea? |
I can't explain it, but it looks like their are 2 copies of the run and debug view container, is that what you are suggesting as well? |
I guess so, but it seems like even if the view container is created twice, the DebugService shouldn't be created a second time too Thanks @page3131, I don't totally follow but I don't really think that saving the settings.json is going to fix this issue, so it's probably a random occurrence |
What ever is going on is a work around to get the debugger started. Today I reloaded visual studio code 10 times. It would not load the debugger run button. I saved the settings. After reloading it was available. I don't know if it helps but I open the projects by directory. |
I will merge this issue into #150169 because that seems to be the same issue and has some more details. As a workaround, does it help if you run the command "Reset View Locations"? |
Reset View Locations doesn't help. |
Ok, sorry - we will keep investigating in the other issue since the stack is the same |
Issue Type: Bug
I have several projects and several copies of several projects for different servers. I right click on the directory and it opens the folder as a project. At some point along the way the php debugger will not load the configuration. I have deleted the settings directory and saved the settings sometimes the dugger menu item comes back. I usually have 2 or more visual studio code projects loaded and navigating between them. As needed I turn off the debugger on one and turn it on with the another project. For some reason now I am unable to get the "run" in the menu and the left side debug icon doesn't show a start option or set up the settings option. It does seem to work in other projects. It seems to get locked on some projects. I think I saw a message about it already connected.
Step 1 load a project
Step 2 Activate php debugger
Step 3 open another project
Step 4 Deactivate debugger from step 1
Step 5 Attempt to use the debugger from step 3
Step 6 Repeat until the second project fails to show the debugging controls
Step 7 If the above fails load a bunch of projects and enable, use and disable the php debugger through out the list of open projects
Other than that I am not sure why it fails to load the debugger controls. For now in the worst case scenarios I have to switch over to Sublime.
VS Code version: Code 1.66.2 (dfd34e8, 2022-04-11T07:46:01.075Z)
OS version: Windows_NT x64 10.0.17763
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
Extensions (16)
A/B Experiments
The text was updated successfully, but these errors were encountered: