Jonathan G Rennison
61e7b8c52a
Debug: Include vehicle type and unit number in scope_dumper::VehicleInfo
4 years ago
Jonathan G Rennison
002e99ac34
Debug: Show tile info on separate lines in vehicle debug window
4 years ago
Jonathan G Rennison
60dabc68a0
Add a scope info logger for DoSetViewportPosition calls
4 years ago
Jonathan G Rennison
cbdd9f84d8
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/console_gui.cpp
# src/lang/korean.txt
# src/video/sdl2_v.cpp
# src/video/sdl2_v.h
# src/window.cpp
# src/window_gui.h
5 years ago
Jonathan G Rennison
674732cd68
Merge: Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Jonathan G Rennison
884fa9a9d4
Support effect and disaster vehicles in scope_dumper::VehicleInfo
6 years ago
Jonathan G Rennison
8128d027c0
Fix wrong return value in scope_dumper::TileInfo
6 years ago
Jonathan G Rennison
5661763d6a
Merge branch 'crashlog_improvements' into jgrpp
6 years ago
Jonathan G Rennison
8805ab8387
Add tile info dump method to scope_dumper
6 years ago
Jonathan G Rennison
943af5bf0d
Merge branch 'crashlog_improvements' into jgrpp
...
Fixes compilation on MSVC
6 years ago
Jonathan G Rennison
e2a4e51725
Enable use of scope_dumper without scope info logging enabled
6 years ago
Jonathan G Rennison
943f4fdabb
Debug: Add train and RV flags to scope info dump
...
Move flag dumping to separate function
6 years ago
Jonathan G Rennison
4aa211e454
Merge branch 'crashlog_improvements' into jgrpp
6 years ago
Jonathan G Rennison
bb8c18b017
Add scope info logging to LoadUnloadStation
6 years ago
Jonathan G Rennison
faf4cdc0f4
Scope info: Add station/waypoint info dumper
6 years ago
Jonathan G Rennison
1615137481
Adjust format of vehicle scope dumping
7 years ago
Jonathan G Rennison
27ac2f5894
Scope info: Adjust formatting of vehicle dump info
7 years ago
Jonathan G Rennison
f80bebae7c
Scope info: Log whether vehicle pointer is a virtual vehicle.
8 years ago
Jonathan G Rennison
cbc35e8aae
Try to make scope info logging more robust.
...
Add checks for validity of Vehicle ptrs in scope_dumper::VehicleInfo.
In Unix mode, try to handle SIGSEGVs when dumping scope info.
9 years ago
Jonathan G Rennison
0062881a46
Avoid using malloc in scope guard logger.
...
Use a temporary object with its own buffer, which lives on the stack.
Reformat SCOPE_INFO_FMT to not be all on one line.
Other minor reformatting.
9 years ago
Jonathan G Rennison
5cf2b04f6a
Initial implementation of scope guard logging for including in crash logs.
...
This adds a mechanism to create scope guards with an associated std::function
which is called to output diagnostic info in the event of a crash.
Add a macro to make it easy to efficiently capture variables on the stack
and output a formatted message.
Requires C++11, #ifdefed out for legacy compilers.
9 years ago