PCSX2 Documentation/Compiling on Windows: Difference between revisions

Line 276: Line 276:


==Running PCSX2 from the Visual Studio Debugger==
==Running PCSX2 from the Visual Studio Debugger==
It is possible (and quite easy) to run PCSX2 from the Visual Studio Debugger, if you feel so compelled to do so. See below for instructions on how to do it for each supported version of Visual Studio.
It is possible (and quite easy) to run PCSX2 from the Visual Studio Debugger, if you feel so compelled to do so. See below for instructions on how to do it for all supported version of Visual Studio.


Visual Studio 2008 Standard + Visual C++ 2008 Express Edition
Select build target from top, just like you would do to build PCSX2, then press F5. If you are an experienced developer you can even mess with Configuration manager to debug specific components of PCSX2, certain plugins for example.
Setting PCSX2 to Run from the VS2008 Debugger
Setting PCSX2 to run from the debugger is simple. Open pcsx2_suite_2008.sln Solution file. Once Visual Studio 2008 / Visual C++ 2008 has opened, right click on the PCSX2 project and select Properties. Expand Configuration Properties on the left-hand side, and select the Debugging option. Configure it to match the settings in the screenshot.
1
Once you've done this, hit OK. Once you're back to the main screen, hitting F5 will cause PCSX2 to run in the debugger.
Specifying Plugins on the PCSX2 Command Line for the VS2008 Debugger
If you are debugging specific plugins, you can do so with the Command Arguments variable, and when that plugin is set as the Start-up Project, PCSX2 will know to load it regardless of the selected configuration or target types. See the following example screenshot which is used for debugging SPU2-X.
1
Notice that -spu $(TargetPath) is used as the parameter. This tells PCSX2 to load whichever copy of SPU2-X that was just built -- whether it be Debug, Devel, or Release. This saves a trip into the Configuration Dialog of PCSX2 to select the built plugin manually.
Visual Studio 2010 Professional
Setting PCSX2 to Run from the VS2010 Debugger
Specifying Plugins on the PCSX2 Command Line for the VS2010 Debugger


==Packaging PCSX2 with Nullsoft Scriptable Install System==
==Packaging PCSX2 with Nullsoft Scriptable Install System==
ninja
34

edits