Skip to content

Commit 4eb60a7

Browse files
daveplunkettgitbook-bot
authored andcommitted
GITBOOK-624: change request with no subject merged in GitBook
1 parent 5bd3238 commit 4eb60a7

File tree

1 file changed

+11
-15
lines changed
  • introduction/getting-started/posting-a-test-crash/myconsolecrasher-c-plus-plus

1 file changed

+11
-15
lines changed

introduction/getting-started/posting-a-test-crash/myconsolecrasher-c-plus-plus/README.md

+11-15
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,23 @@ description: >-
88

99
Before you enable your native Windows application with BugSplat technology, you may want to take a moment to experiment with our `myConsoleCrasher` sample application.
1010

11-
First, login to BugSplat with user name `fred@bugsplat.com` and password `Flintstone`.
11+
To get started, download the BugSplat Microsoft Windows Native C++ SDK from the [Downloads](https://www.bugsplat.com/docs/sdk/) page. Once the contents of `BugSplatNative.zip` have been extracted, navigate to the `samples` folder and open the `myConsoleCrasher.vcxproj` file with Visual Studio.
1212

13-
All of the crash reports in the `[email protected]` account are actual crashes created with our sample applications. Reports from `myConsoleCrasher` are mixed in with reports from other applications on the [Crashes](https://app.bugsplat.com/v2/crashes) page.
13+
1. Open myConsoleCrasher.vcxproj with Visual Studio 2019+ 
14+
2. Define values for `BUGSPLAT_DATABASE`, `APPLICATION_NAME`, and `APPLICATION_VERSION` in MyConsoleCrasher\MyConsoleCrasher.h
15+
3. Create a Client ID and Client Secret pair for your BugSplat database on the [Integrations](https://app.bugsplat.com/v2/settings/database/integrations) page
16+
4. Create a file `MyConsoleCrasher\Scripts\env.ps1` and populate it with the following (being sure to substitute your `{{id}}` and `{{secret}}` values from the previous step):
1417

15-
To view just the `myConsoleCrasher` crashes, filter using the drop-down menu in the header of the application column:
16-
17-
![Search for Crashes Containing MyConsoleCrasher](../../../../.gitbook/assets/my-console-crasher-search.png)
18-
19-
Next, download the BugSplat Microsoft Windows Native C++ SDK from the [Downloads](https://www.bugsplat.com/docs/sdk/) page. Once the SDK has downloaded, right click `BugSplatNative.zip` and choose and `Extract All`. Failing to extract the contents from the zip will result in numerous build failures. Once the contents of `BugSplatNative.zip` have been extracted navigate to the `samples` folder and open the `myConsoleCrasher.vcxproj` file with Visual Studio.
18+
```
19+
$BUGSPLAT_CLIENT_ID = "{{id}}"
20+
$BUGSPLAT_CLIENT_SECRET = "{{secret}}"
21+
```
2022

21-
Rebuild the project and run it outside of the Visual Studio debugger (Ctrl+F5). This is important since the debugger interferes with the BugSplat library’s exception handling. You should see a dialog such as that shown below (make sure to type something describing the crash so that you can identify it on the website):
23+
5. Rebuild the project and run it outside of the Visual Studio debugger (Ctrl+F5). This is important since the debugger interferes with the BugSplat library’s exception handling. You should see a dialog such as that shown below:
2224

2325
![BugSplat Crash Dialog](<../../../../.gitbook/assets/bugsplat-crash-dialog (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (3) (2) (1) (2).png>)
2426

25-
Click the `Send Error Report` button and voilà! The report will be sent! On the BugSplat website while logged in to the `[email protected]` account, look for the crash report with the description you entered.
26-
27-
You also can easily modify `myConsoleCrasher` so that crash reports are sent to a database in your account instead. Just modify the following line in `myConsoleCrasher.cpp`, changing `Fred` to the name of your database:
28-
29-
```
30-
mpSender = new MiniDmpSender(L"Fred", L"myConsoleCrasher", L"1.0", NULL);
31-
```
27+
Enter some descriptive text to help you identify the crash you are about to upload. Click the `Send Error Report` button, and voilà! The report will be sent! On the BugSplat website, look for the crash report with the description you entered.
3228

3329
Finally, experiment with other features of the library by examining the `myConsoleCrasher` source code and supplying different command-line arguments.
3430

0 commit comments

Comments
 (0)