Sign in to follow this  
Followers 0
Volgogradetzzz

VS 2012 Graphics Debugger. Connect to running app.

4 posts in this topic

Hello. I know how to run debugger from VS. But I can't figure out how to connect to other app - not created in Visual Studio. For example, in PIX we can choose app to run and start debugging. Is it possible with VS?

0

Share this post


Link to post
Share on other sites

Debug -> Attach to process? But if you don't have pdb files of that app/lib, you only would have access to decompiled code at most.

1

Share this post


Link to post
Share on other sites

Its not possible to attach the Graphics Diagnostics Tools in VS2012 to an app that's already running. However, you might be able to run Graphics Diagnostics against an executable using the directions found here: Walkthrough: Capturing Graphics Information Manually, in the procedure To enable the capture of graphics information without loading a project or solution. Of course, there will be limitations on what works since you probably don't have the PDBs, Source Code, or shader assets, but the basic inspection of draw calls, framebuffer, device state and Direct3D objects and resources should work. You just need to know where the application's .EXE is located.

 

Note that there is a programmatic API that the developer might have employed in order to prevent tools Like Graphics Diagnostics from hooking the application. If they have, you're out of luck, but it seems uncommon that developers have done so. 

2

Share this post


Link to post
Share on other sites

Thank you. It's almost works. As Ravyne have said there should be pdb for full debugging. Without it I can't step through code and look at locals. But in PIX it worked.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0