Enable crash reporting by default
- Set CopyToOutputDirectory in csproj files - It's important to make sure the crash_reporter.cfg is copied to the bin folder, it has to be next to your application exe. - Specify AppName in crash_reporter.cfg to have dumps generated to a folder in this case they will be generated at C:\Users\[CurrentUser]\AppData\Local\CefSharp.MinimalExample\User Data - If you are having trouble getting a dump, run your exe outside of Visual Studio, the debugger can sometimes interfere You can test crash reporting as outlined in https://bitbucket.org/chromiumembedded/cef/wiki/CrashReporting.md#markdown-header-testing Loading `chrome://crash` in the browser will crash the render process To confirm that crash reporting is enabled check the debug.log file, you should see a number of entries like Crash reporting enabled for process: browser
This commit is contained in:
parent
c03e51151d
commit
ac87ce9b5a
@ -77,6 +77,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="app.config" />
|
<None Include="app.config" />
|
||||||
<None Include="app.manifest" />
|
<None Include="app.manifest" />
|
||||||
|
<None Include="crash_reporter.cfg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
12
CefSharp.MinimalExample.OffScreen/crash_reporter.cfg
Normal file
12
CefSharp.MinimalExample.OffScreen/crash_reporter.cfg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Crash reporting is configured using an INI-style config file named
|
||||||
|
# "crash_reporter.cfg". This file must be placed next to
|
||||||
|
# the main application executable.
|
||||||
|
# Comments start with a hash character and must be on their own line.
|
||||||
|
# See https://bitbucket.org/chromiumembedded/cef/wiki/CrashReporting.md
|
||||||
|
# for further details
|
||||||
|
|
||||||
|
[Config]
|
||||||
|
ProductName=CefSharp.MinimalExample.OffScreen
|
||||||
|
ProductVersion=1.0.0
|
||||||
|
AppName=CefSharp.MinimalExample
|
||||||
|
ExternalHandler=CefSharp.BrowserSubprocess.exe
|
@ -94,6 +94,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="app.config" />
|
<None Include="app.config" />
|
||||||
<None Include="app.manifest" />
|
<None Include="app.manifest" />
|
||||||
|
<None Include="crash_reporter.cfg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
<None Include="Resources\nav_left_green.png" />
|
<None Include="Resources\nav_left_green.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
12
CefSharp.MinimalExample.WinForms/crash_reporter.cfg
Normal file
12
CefSharp.MinimalExample.WinForms/crash_reporter.cfg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Crash reporting is configured using an INI-style config file named
|
||||||
|
# "crash_reporter.cfg". This file must be placed next to
|
||||||
|
# the main application executable.
|
||||||
|
# Comments start with a hash character and must be on their own line.
|
||||||
|
# See https://bitbucket.org/chromiumembedded/cef/wiki/CrashReporting.md
|
||||||
|
# for further details
|
||||||
|
|
||||||
|
[Config]
|
||||||
|
ProductName=CefSharp.MinimalExample.WinForms
|
||||||
|
ProductVersion=1.0.0
|
||||||
|
AppName=CefSharp.MinimalExample
|
||||||
|
ExternalHandler=CefSharp.BrowserSubprocess.exe
|
@ -129,6 +129,9 @@
|
|||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<None Include="app.manifest" />
|
<None Include="app.manifest" />
|
||||||
|
<None Include="crash_reporter.cfg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
12
CefSharp.MinimalExample.Wpf/crash_reporter.cfg
Normal file
12
CefSharp.MinimalExample.Wpf/crash_reporter.cfg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Crash reporting is configured using an INI-style config file named
|
||||||
|
# "crash_reporter.cfg".
|
||||||
|
# This file **must** be placed next to the main application executable.
|
||||||
|
# Comments start with a hash character and must be on their own line.
|
||||||
|
# See https://bitbucket.org/chromiumembedded/cef/wiki/CrashReporting.md
|
||||||
|
# for further details
|
||||||
|
|
||||||
|
[Config]
|
||||||
|
ProductName=CefSharp.MinimalExample.Wpf
|
||||||
|
ProductVersion=1.0.0
|
||||||
|
AppName=CefSharp.MinimalExample
|
||||||
|
ExternalHandler=CefSharp.BrowserSubprocess.exe
|
Loading…
Reference in New Issue
Block a user