-
Notifications
You must be signed in to change notification settings - Fork 89
Debugging Scripts with Visual Studio
Komefai edited this page Oct 6, 2017
·
5 revisions
-
Setup the project as mentioned in Scripting Basics.
-
In project properties, go to Debug tab and select
Start external program
as your path toPS4Macro.exe
inStart Action
. -
Create
settings.xml
in the project's output folder (eg. MyScript/bin/Debug/) since PS4 Macro will now use the one next to your DLL instead of the default one next to the exe.
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<StartupFile>MyScript.dll</StartupFile>
</Settings>
- Start the project as you would with an application project (pressing F5). Try adding a breakpoint and now it should be triggered.
- Instead of using
Console.WriteLine
to print a text to output console, useSystem.Diagnostics.Debug.WriteLine
to be able to see the output.