I'm developing a C++ software product for Windows. I wrote tests for it using the Catch2 framework. They are automated in CI/CD pipeline in Azure Dev Ops (ADO). What I would like to do is to get a crash dump (.dmp file) automatically created and saved in this ADO pipeline, when there is a crash in my code (e.g. unhandled exception). I don't see anything in Catch2 framework to allow crash dump collection. I'm using the tool procdump.exe elsewhere to create crash dump, and I'm wondering if there is a way to run this tool with my Catch2 tests to get a dump when a crash happens. Any tips on how that can be done, or using other tools, will be helpful, thanks! Darren
How can I enable crash dumps in Catch2 C++ tests in Azure DevOps CI/CD pipeline?
327 Views Asked by Darren Cohen At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in TESTING
- How does Robot's Telnet library work?
- Behat doesn't load extensions?
- Load additional CONFIG file with values
- rails controller test failing non-deterministicly wrt state leak (I think)
- Ordering tests using trial twisted
- Unexcepted failed Gavel/Dredd test
- How to use Jasmine and CucumberJS with Protractor
- Django login tests session problems
- How to mock specific RequireJs dependencies while unit testing
- Test case for WCF REST Service
- how to test this business logic
- Protractor - How to get first or last CHILD value
- Factory Not Registered in rspec but found in console
- Pick out certain lines from files
- Selenium stops running after click() function runs
Related Questions in CRASH-DUMPS
- Windows Error Reporting doesn't generate mini dump for a .NET 4 application sometimes
- What is: Bad_dump!missing_teb (Windows Phone Dev Center Crash Log)
- Analizing crash dump
- What could be the reason of failing of mini-dump generation but successful generation of complete Windows memory dump?
- Is the Executable and Linkable Format (ELF) streamable?
- Why would an app crash with _objc_msgSend_uncached
- Debugging with Dump File in VS2012
- How WinDbg get to know source code?
- Process hung debug C / C++
- Kdump doesn't executed on Kernel Panic
- How does one include data in crash dumps?
- Is there a way to automatically include the console output with the crash log on ios
- Parse the crash dump in WinDbg for private bytes (other than managed heap)?
- What is 0x%08lx?
- Android Crash Dump data Accessing on Device
Related Questions in CATCH2
- How to compare floating point in catch2
- Unresolved External Symbol errors while using Catch2
- Catch2 SECTIONs equivalent in GoogleTest
- CMake script for Catch2 version 3.x
- Integrating Catch2 Unit Tests to a project which is structured with tests close to each library
- C++ Catch unit tests with junit reporter misses tests without any output
- Visual Studio Test Adapter for Catch2: unit tests for C++ code on remote linux
- Catch2 Unit Tests - could not find env executable
- Catch test for .cpp file not running properly - Randomness seeded shows, and then it exits
- Catch2 installation on ubuntu 20.04 #include <catch2/catch.hpp>
- How to use catch2 for testing a big project in Visual Studio
- Catch2 linker errors
- CMake Error: The source directory "/" does not appear to contain CMakeLists.txt while building docker image
- How to run/execute a unit testing framework like "catch2" in Unix Bash?
- Catch2 test don't work when building application with CMake
Related Questions in PROCDUMP
- Procdump: Increase hang trigger time to more than 5 seconds
- how to analyse call stack info of c# app where my database say access exception, attempt to read or write memory is corrupt
- How do I analyse C# prodump crash dump file, an exception came from the CLR?
- Using ProcDump to obtain the dump of a service?
- Cygwin dumper for Windows process?
- Using procdump to listen to all exceptions doesn't work
- Creating a proccess dump via CMD or Powershell
- Windbg crash dump analysis
- Using procdump as AeDebug tool, how can I change dump directory?
- Memory usage of a process increases while taking a dump, using procdump. Is this even possible?
- How can I enable crash dumps in Catch2 C++ tests in Azure DevOps CI/CD pipeline?
- Why can't ProcDump record memory contents of a 32-bit process under 64-bit Windows 10?
- Interpreting Procdump Exception code 00000006, and the difference between E06D7363.J and E06D7363.msc
- ProcDump to catch high cpu of IIS website, need site name
- Generate dumps on first chance exceptions of multiple instances of an application
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I ended up using procdump.exe to launch my Catch2 test executable. For example:
Since in my case MyCatch2Tests.exe runs the tests in a single process, the above should work. If I have a crash in my tests a full crash dump (*.dmp file) will be created in the CrashDumpFolder.