Skip to content

Commit

Permalink
Use --debug not --debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr727 committed Jul 1, 2022
1 parent a1e2aea commit 8f66342
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Test in docker shell:
# docker run -it --rm --pull always ubuntu:latest /bin/bash
# docker run -it --rm --pull always --name Testing ubuntu:latest /bin/bash
# export DEBIAN_FRONTEND=noninteractive


# Test in develop shell:
# docker run -it --rm --pull always --volume /data/media:/media:rw ptr727/plexcleaner:develop /bin/bash
# docker run -it --rm --pull always --name Testing --volume /data/media:/media:rw ptr727/plexcleaner:develop /bin/bash


# Test Docker build:
Expand Down
4 changes: 2 additions & 2 deletions PlexCleaner/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ private static int Main()

private static void WaitForDebugger()
{
// Use the raw commandline and look for --debugger
if (Environment.CommandLine.Contains("--debugger"))
// Use the raw commandline and look for --debug
if (Environment.CommandLine.Contains("--debug"))
{
// Wait for a debugger to be attached
Console.WriteLine("Waiting for debugger to attach...");
Expand Down
4 changes: 4 additions & 0 deletions PlexCleaner/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
"Process Snippets Parallel": {
"commandName": "Project",
"commandLineArgs": "--parallel --settingsfile \"PlexCleaner.json\" --logfile \"PlexCleaner.log\" process --testsnippets --mediafiles \"D:\\Test\""
},
"Debugger": {
"commandName": "Project",
"commandLineArgs": "--debugger"
}
}
}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Docker images are published on [Docker Hub](https://hub.docker.com/u/ptr727/plex
## Release Notes

- Version 2.9:
- Added `--debug` option that will launch and wait for a debugger to be attached.
- Added `--debug` option that will wait for a debugger to be attached on launch.
- `develop` docker builds will install the .NET SDK and the VsDbg .NET Debugger.
- See [Release History](./HISTORY.md) for older Release Notes.

## Questions or Issues
Expand Down Expand Up @@ -89,6 +90,7 @@ docker run \
-it \
--rm \
--pull always \
--name PlexCleaner \
--volume /data/media:/media:rw \
ptr727/plexcleaner \
/bin/bash
Expand Down Expand Up @@ -129,6 +131,7 @@ docker run \
-it \
--rm \
--pull always \
--name PlexCleaner \
--user nobody:users \
--env TZ=America/Los_Angeles \
--volume /data/media:/media:rw \
Expand Down

0 comments on commit 8f66342

Please sign in to comment.