Teamcity display error message instead exit code - msbuild

I do not know what I did and the default behavior changed so I am looking for some ideas. At the moment when this simple Error command fails teamcity reports Exit code 1 and the only way to see the error is by navigating/search the build.log while I want to display it instead of the Exit code.

Related

In VS2022 when debugging: Unable to set the next statement. Class not registered

I am debugging a .NET C# solution in VS2022. Whenever I attempt to set the next statement I get the error message
Unable to set the next statement. Class not registered.
I am also not able to hot-reload either when I make a change. If I make the slightest change (even just adding some whitespace) and the click on the hot reload button I get the message
This source file has changed. It no longer matches the version of the
file used to build the application being debugged.
I appreciate that the second statement is more common but I thought the point of hot-reload was that it recognised that the file had changed and would reload it!
I have found links for the first message but never in combination with the class not being registered.

Can I debug more finely in gem5?

In gem5, can I step through my code? Like gdb instead of using DPRINTF to print out certain statements in some places?
1、Now,I found I can debug the gem5 through the command like gdb --args gem5.debug --debug-break = 1000. but I still cann't look the code in the real time. When I use the option of -tui,the error occured as "Cannot enable the TUI when output is not a terminal". but when I use the gdb to debug my Hello_world program like gdb -tui hello_world,The error didn't appear. and I can look the code in the real time.
2、moreover,I cann't set the breakpoint in my hello_world program when debug the gem5. when I use the command like b src/cpu/o3/cpu.cc:567,it works. but if I set the breakpoint in my own hello_world program,the error occurred as "No source file named cleanupspec/hello_world".
For the first question, I have known the answer. Via layout next command, I can look the code in the real time. But command like layout, layout src, etc. didn't work.

Stop command prompt from getting closed after executing a batch file

I used Shell command from Excel VBA to run a certain .bat file. The CMD appears but exits automatically after all lines were executed. I've added the PAUSE command a the end of the bat. file but it's not working. How to stop command prompt from getting automatically closed?
Try using the /K switch to prevent exiting after running the batch file like this:
cmd /K "path to batch file including file name and extension"
e.g.
cmd /K "C:\FOLDER\BATCH FILE.BAT"
or
cmd /K "C:\FOLDER\BATCH FILE.CMD"
Obviously that won't reveal any faults with your batch code, but it won't exit after running - much the same as running the batch file from the command line.
Definitely add some ECHO output lines to indicate progress as it runs and troubleshoot. Perhaps post the file here for more help.
Try opening the command prompt and running the batch file. It is possible that the the dos shell is encountering an error and closing. If the error comes before the execution reaches Pause command, it will not pause for you to read the error and it immediately closes off.
If that doesn't work out, check if you have any exit commands in any of the branches. Alternatively, place echo statements at different places and check if the execution control reaches these echos. This way you can find out if your script if ending at some other branch.
While perhaps not actually answering the posted question, I stumbled upon this question in a search to a very related-question. I was also trying to stop a command prompt from closing as it was erroring out and closing immediately. For me, it was sufficient for me to view the output as what I really wanted was to be able to see the error in order to debug it.
The solution I found was to pipe the output of the command prompt into a text file, like so:
MyScript.bat >> text.txt
This allowed me to see the error I was getting.

Run VB.NET application is silent for distribution

I have created an application that installs and edits configuration settings for a 3rd party application. The application works fine but I need to prepare it for deployment, which means I need to edit it so that it can run silently. I've created it in Visual Studio 2012, if that makes any difference. It contains 3 Messagebox.Show for errors, that I suppose I should output to the error log, and the "Configuration Complete" prompt after success. There is a single button click to start the configuration function.
I have looked around and found only people trying to silently run other applications silently from within their code. If anyone can point me in the right direction I would be grateful.
Just add a Module to your project.
Change your Startup Object to "Sub Main" in Project Properties>Application Tab
Then add a Sub Main your module:
Module Module1
Sub Main()
'call your program code here instead of from your button click
End Sub
End Module
And yes you need to log your errors to a file instead of showing them in a Message Box

How to get Intellij Idea to display compilation warnings?

I'm working with Intellij Idea 10 and Java 6 JDK Update 7. When I run Build --> Rebuild Project command, and the (javac) compilation generates warnings, Idea doesn't display what those warnings exactly are in the Messages view. I just see an "Information: XX warnings" node, but no way to expand it to see the actual warnings. Or I just see a message "Compilation completed successfully with XX warnings" on the status bar. For errors, Idea displays the error information (error message, filename, line number etc.) automatically. How can I get it to work similarly with warnings?
(For the record, I've already tried using additional command line parameters such as -Xlint, but it does not make a difference.)
Make sure that "Hide Warnings" option is disabled in the Messages panel on the left: