Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fs9 debug in vc++

Featured Replies

HiI'm trying to figure out how to debug the sample c gauges from the fs2004 sdk. I'm using visual studio 2005 c++. The gauges will compile and run just fine but I can't get into debug mode. Here's a bit of output when I run debug:info for 'fs9.exe' can't be found or doesn't match. No symbols loadedfs9.exe': Loaded 'C:Program FilesMicrosoft GamesFlight Simulator 9fs9.exe', No symbols loaded.'fs9.exe': Loaded 'C:WINDOWSsystem32ntdll.dll', Symbols loaded (source information stripped).'fs9.exe': Loaded 'C:WINDOWSsystem32kernel32.dll', Symbols loaded (source information stripped)..........'fs9.exe': Loaded 'C:Program FilesMicrosoft GamesFlight Simulator 9oleacc.dll', No symbols loaded.I loaded the symbols from microsoft. Now I'm only missing symbols for fs9.exe and oleacc.dll.Anybody know what I can do about this?

You don't need those symbols to debug your own gauges or the sample ones. Just set a breakpoint in the sample gauge, run and you should hit the breakoint when the gauge is loaded.

That's what I thought too but when I set a breakpoint and run a box pops up and says:info for 'fs9.exe' can't be found or doesn't match. Nosymbols loaded. do you wish to continue.I continue and the breakpoint automatically gets disabled. It says:the breakpoint will not currently be hit. No symbols loaded for this document.I just want to be able to step thru the sample code to get a better feel for whats happening.

Where are you trying to set the breakpoint? In fs9.exe or in your own dll?

My dll.

Have you just tried continuing? Your breakpoint might well be disabled until your gauge dll is loaded at whih point it will be active.

Yeah, I've hit continue but it never breaks. I guess its not my biggest problem right now. At least I can still make new gauges. Its just nice to be able to see how variables change as you go along.Thanks for the help anyway.

  • 3 weeks later...

I've found that the changes made in the FS 9.1 update prevent loading a debugger with FS9. With the NoCD patch it runs OK.RegardsBob ScottATP IMEL Gulfstream II-III-IV-V L-300Santiago de Chile

Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

Sys1 (MSFS20+24/XPlane12+11): AMD 9800X3D, water 2x240mm, MSI MPG X670E Carbon, 64GB GSkill 6000/30, nVidia RTX4090FE
Alienware AW3821DW 38" 21:9 GSync, 2x4TB Crucial T705 PCIe5 + 2x2TB Samsung 990 SSD, EVGA 1000P2 PSU, 12.9" iPad Pro
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, Twin TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Sys2 (P3Dv5/v4): i9-13900KS, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@60Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys3 (DCS/P3Dv4/ATS/ETS): AMD 7800X3D, MSI MPG X870E Carbon, Noctua NH-D15S, 64GB GSkill 6000/30, EVGA RTX3090
Alienware AW3420DW 34" 21:9 GSync, Corsair HX1000i PSU, 4TB Crucial T705 PCIe5 + 2TB Samsung 970Evo Plus,
TM TCA Officer Pack
, Saitek combat pedals, TM Warthog, TM RS300 FF wheel/pedals, Coolermaster HAF XB case

  • 1 month later...

I had this problem once.I found that if the name of my project as listed in Solution Explorer, was different to the name of the main C/C++ file that generates your .obj. .gau and, more importantly, the .pdb file (.pdb contains all your debug symbols), things did not work. Look at your Project name and make sure it's the same as the resultant build filenames that are being generated.I can now debug .gau files with blissful ease within the sim and productivity in tracking down those pesky code gremlins has vastly improved :)Hope this helps- Darren Evans

  • 2 months later...

I am trying to debug my gauge and it says it has loaded the symbols for my gauge, but for nothing else.The breakpoints are not hit and Visual Studio says:"The breakpoint will not currently be hit. No symbols have been loaded for this document"Any ideas?

Have you first tested the gauge works at all in FS? Run it installed on a panel and see if it loads ok there.Are you using Express or VS 2005?

  • Commercial Member

>I've found that the changes made in the FS 9.1 update prevent>loading a debugger with FS9. With the NoCD patch it runs OK.>Confirm that. Also FS9.1 contains an internal debugger that will (surprisingly) sometimes co-operate with you instead of just giving you a CTD if you do something stupid. I'd been trying to register a DirectSound object and every time I failed it came back with'FS9 Debug not registered. will not be played'.Friendly, for once!-Dai

Found it :)I had to set the Debug Information Format to "Program Database for Edit & Continue (/ZI)"

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.