Skip to content

Commit

Permalink
IE Debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustKisik committed Jun 11, 2024
1 parent 30c0f77 commit 73bd60a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "byond",
"request": "launch",
"name": "Build & DS Debug",
"preLaunchTask": "dm: build - ${command:CurrentDME}",
"dmb": "${workspaceFolder}/${command:CurrentDMB}"
},
{
"type": "byond",
"request": "launch",
"name": "DS Debug",
"dmb": "${workspaceFolder}/${command:CurrentDMB}"
},
{

"name": "IE Debugger",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/IEChooser.ps1",
"cwd": "${workspaceFolder}"
}
]
}
12 changes: 12 additions & 0 deletions scripts/IEChooser.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$x86 = "C:\Windows\System32\IEChooser.exe"
$x64 = "C:\WINDOWS\SysWOW64\F12\IEChooser.exe"

if (Test-Path $x64) {
Start-Process -FilePath $x64
}
elseif (Test-Path $x86) {
Start-Process -FilePath $x86
}
else {
Write-Error "IEChooser.exe не обнаружен."
}

0 comments on commit 73bd60a

Please sign in to comment.