Line 233:
Line 233:
* Go to your file and open it
* Go to your file and open it
* Set a break point near the top
* Set a break point near the top
−
* Now go to Debug, Add a Configuration, and accept the defaults
+
* Now go to Debug, Add a Configuration
+
+
Sample config
+
+
{
+
// Use IntelliSense to learn about possible attributes.
+
// Hover to view descriptions of existing attributes.
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+
"version": "0.2.0",
+
"configurations": [
+
{
+
"type": "perl",
+
"request": "launch",
+
"name": "SMB",
+
//"program": "${workspaceFolder}/../${relativeFile}",
+
//"program": "${relativeFile}",
+
"program": "/root/scripts/myTestFile.pl",
+
"stopOnEntry": true,
+
"reloadModules": true
+
},
+
]
+
}
+
* Now run the Debug and you should see the code stop at one of your break points
* Now run the Debug and you should see the code stop at one of your break points
−
You can now step through your code.
You can now step through your code.