Hi, I have tried all three options but still don’t see anything printed to the terminal. Also, I am using a mac to run sumo, but I suppose this won’t really make a difference to the problem I am dealing with. I have tried printing to the terminal, and also writing texts to a file in the sumo_main.cpp file, but still nothing worked.
Thanks and regards, Leonardo On Jun 24, 2024, at 6:03 PM, Jakob Erdmann via sumo-user <sumo-user@xxxxxxxxxxx> wrote:
on windows, sumo-gui never prints anything to a console by default. Here are your options - use sumo instead of sumo-gui - use the debug build of sumo-gui (which enables console output) - enable CONSOLE_RELEASE in the cmake settings and recompile
Dear community, I’ve been trying to modify the car following model source code, and encountered some problem when debugging. The compile has been successful, but I couldn’t get the expected output when printing to the terminal through std::cout. I am using python traci to start a sumo-gui simulation, thus I expect the guisim_main.cpp is run, but even adding some lines to directly print to the terminal would not print anything. According to the document ( https://sumo.dlr.de/docs/Developer/Debugging.html), trying uncommenting some debug conditions would also print messages to the terminal, but still in my case I don’t see any output. I’m not sure if I have misunderstood the procedure of the program, or am I missing something. Any help would be appreciated!
Thanks and regards, Leonardo _______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________ sumo-user mailing list sumo-user@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
|