Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have VS2012, i downloaded a source code in here, but when i opened it, debug button is not working and also F5, they are greyed. How can i run a program?

it's like in that picture.

http://tutorialref.com/images/debug-go-continue-greyed-out.png

Thanks
Posted
Updated 22-Jan-13 22:42pm
v2
Comments
Sergey Alexandrovich Kryukov 23-Jan-13 4:36am    
Not enough information. Does VS work at all? Does it compile?
—SA
Hslldm 23-Jan-13 4:43am    
it's like in that picture.

http://tutorialref.com/images/debug-go-continue-greyed-out.png
Sergey Alexandrovich Kryukov 23-Jan-13 4:46am    
Unbelievable! You don't show main part of the image. Guess what? The title bar.
But it will be not enough anyway.
—SA
Hslldm 23-Jan-13 4:54am    
You didn't understand. That's not mine. I just have that problem. Debug option is
not available.
Sergey Alexandrovich Kryukov 23-Jan-13 11:17am    
I think I understand, but... can you tell me what's written in the title?
—SA

1 solution

You cannot debug php in Visual Studio.
From your screenshot, it appears you've opened a PHP project in Visual Studio and this cannot be debugged here!

There are some extensions (http://visualstudiogallery.msdn.microsoft.com/6eb51f05-ef01-4513-ac83-4c5f50c95fb5[^]), however, which will help you debug in the IDE.
 
Share this answer
 
Comments
Hslldm 23-Jan-13 5:02am    
No its not my screenshot i just have the same problem. When i copy the codes and paste to a "new project", debug option is available but, whenever i open an another project, its off again. why?
Sergey Alexandrovich Kryukov 23-Jan-13 11:21am    
I already asked you about detail, you did not answer. We do not know what is that "another project". So, what happens you you create a brand new one? Debugging? Then exit Studio and run again. What happens with the SAME PROJECT?
—SA
Sergey Alexandrovich Kryukov 23-Jan-13 11:22am    
And why, why would you show PHP project, if it's not yours?! Just to confuse?
—SA
Sergey Alexandrovich Kryukov 23-Jan-13 11:23am    
Well spotted, my 5.
PHP to be debugged under Visual Studio is this:
http://en.wikipedia.org/wiki/Phalanger_%28compiler%29
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900