Skip to content
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

Updating debugBoot file to enable compilation debug in web.config to … #7

Merged
merged 1 commit into from
May 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ If the solution is switched to the "Release" configuration re-run, the container

## Known issues

1. Visual Studio fails when trying to attach just after starting debugging session. VS can attach to the running process in container afterwards, though. See section "Attaching VS2017 to Sitecore" for a workaround
1. First time container is run, when copying in sitecore files, the debug operation times out, afterwards it should be working running with F5
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ if ((Test-Path 'env:\DEFAULTWEBSITEPATH') -And (Test-Path 'env:\SITEPATH')){
Write-Host "### Sitecore files not found in '$WebsitePath', seeding clean Website ..."

Copy-Item -Path $DefaultWebsitePath -Destination $WebsitePath -Force -Recurse
$webConfig = Join-Path $WebsitePath "Web.config"
$doc = new-object System.Xml.XmlDocument
$doc.Load($webConfig)
$doc.get_DocumentElement()."system.web".compilation.debug = "true"
$doc.Save($webConfig)
}
else
{
Write-Host "### Existing Sitecore files found in '$WebsitePath'..."
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ if ((Test-Path 'env:\DEFAULTWEBSITEPATH') -And (Test-Path 'env:\SITEPATH')){
Write-Host "### Sitecore files not found in '$WebsitePath', seeding clean Website ..."

Copy-Item -Path $DefaultWebsitePath -Destination $WebsitePath -Force -Recurse
$webConfig = Join-Path $WebsitePath "Web.config"
$doc = new-object System.Xml.XmlDocument
$doc.Load($webConfig)
$doc.get_DocumentElement()."system.web".compilation.debug = "true"
$doc.Save($webConfig)
}
else
{
Write-Host "### Existing Sitecore files found in '$WebsitePath'..."
}

}