-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on how to debug #138
Comments
That is certainly possible. I will work on that to get something going but it has been very busy lately |
It is not true debugging but you can specify |
It's something, and it's what I've resorted to before, but I'm looking for true debugging and how to run a local copy within VS Code without affecting any installed copy, so that I can make tweaks and put breakpoints, etc. |
I'm not sure how to help you with this because I debug it the same way by putting in debug messages where things possible go wrong and fix it that way. |
Even just some information on how you run this locally without having to install it, so that I can add print statements, run it and see what happens. But I'm running into issues there as well. Here's my steps so far:
This produces
Any insight? I can compile any findings into a wiki page or a DEVELOPER.md file and PR it. |
I've done some digging and found an old Reddit post by yourself (@blitzmann): # Sets $doDotSource to true.
$dbaclone_dotsourcemodule = $true;
Import-Module .\dbaclone.psd1 -Force
# Configure DbaClone to use a SQL Store
$username = "sa"
$password = ConvertTo-SecureString -AsPlainText "Pass@word!" -Force
$sqlCredential = New-Object System.Management.Automation.PSCredential -ArgumentList ($username, $password)
$sqlInstance = "localhost"
Set-DcnConfiguration -InformationStore SQL -SqlInstance $sqlInstance -SqlCredential $sqlCredential
# Command to debug
Get-DcnImage If your using VS code I used the below launch.json: {
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": ".\\debug.ps1",
"cwd": ""
}
]
} |
@blitzmann have you had a chance to try out the above? |
@DatKyle I have not yet, but I'm looking forward to it. I plan to check it out on Friday when I can get back t this project |
@DatKyle sorry for the delay, I finally got a change to start looking into this stuff again. It does seem to work at first glance, would be nice if I could debug while issuing commands in the console, but this is a good start. I'll play around with it some more. |
I would like to be able to debug the cmdlets so that I can have better insight into errors / posssible help contribute. I used to know how, but that knowledge has been lost to time. It would be nice if that information was available via a Developer Getting Started wiki page
The text was updated successfully, but these errors were encountered: