Capture IDE Debugger Console Output to Local File

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Capture IDE Debugger Console Output to Local File

跳至解决方案
2,990 次查看
Dave_the_coder
Contributor II

Is there a built-in IDE method to export or re-direct the S32 Design Studion Debugger Console content to a local file?

I'm using the IDE debugger console to display large data arrays that are being used to capture realtime diagnostic information for seperate analysis, (using debugger commands like print -array on -array-indexes on -elements unlimited -pretty off -- waitrec_m)  but I have to manually select/copy the resulting console text in order to save it elsewhere.

I'm hoping to be able to better automate this process.

标签 (1)
0 项奖励
回复
1 解答
2,972 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Dave_the_coder,

If you are using Semihosting to print into the console, you can use fprint instead to write directly into a file. Please look at the following community posts:

Best regards,
Julián

在原帖中查看解决方案

7 回复数
2,973 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Dave_the_coder,

If you are using Semihosting to print into the console, you can use fprint instead to write directly into a file. Please look at the following community posts:

Best regards,
Julián

2,960 次查看
Dave_the_coder
Contributor II
Julián - Thank you for taking the time to respond, it is greatly appreciated!

Unfortunately, I cannot embed any Semihosting functions into the code I am testing as it has time-critical behaviour that breaks with the addition of fprintf() or similar library calls. I only have enough throughput capacity to write diagnostic data directly into ram-based arrays - after hitting a breakpoint I then have to display the captured data to the debug console and it is from that I am trying to capture the resulting console output.
I have looked through the available debug console commands but have not yet identified (or understood) anything that allows the console output to be redirected.

Regardless, thank you again for your suggestions.
Dave
0 项奖励
回复
2,937 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Dave_the_coder,

I'm not sure if this is the option you are looking for, but you can also select an output file from "Debug Configurations > Standard Input and Output"

Julin_AragnM_0-1722966980712.png

Best regards,
Julián 

 

0 项奖励
回复
2,921 次查看
Dave_the_coder
Contributor II
Thank you for your suggestion Julián
- unfortunately, I believe that this still relies on the use of the stdio library functions that as per my prevous explanation I can't use in my design.
I was hoping to find debugger console command options that would re-direct the console command output to a local file.
For example, the debugger console command 'print' supports a variety of command line options to format and display program variables and memory to the console, but I cannot identify any setting to redirect that command output to a local file.

Regards,
Dave
0 项奖励
回复
2,919 次查看
Dave_the_coder
Contributor II

To clarify:

I have been referring to the output obtained from the IDE Debugger Console :

Dave_the_coder_0-1723018721083.png 

- not the Standard input/Output console: 

Dave_the_coder_1-1723018821091.png

 

Dave

 

0 项奖励
回复
2,902 次查看
Dave_the_coder
Contributor II
I finally located the answer - the IDE debug console has commands 'dump' and 'set logging' options to redirect the output to a local file.

The answer was in one of the links 1st provided by Julián (Redirect debug console to file - NXP Community) - I completely missed the references in that link!

Julián - Apologies and Thanks!

Dave
2,885 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

No problem, Dave! I'm Glad you were able to find the solution.

Best regards,
Julián

%3CLINGO-SUB%20id%3D%22lingo-sub-1925465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%B0%86%20IDE%20%E8%B0%83%E8%AF%95%E5%99%A8%E6%8E%A7%E5%88%B6%E5%8F%B0%E8%BE%93%E5%87%BA%E6%8D%95%E8%8E%B7%E5%88%B0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1925465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%98%AF%E5%90%A6%E6%9C%89%E5%86%85%E7%BD%AE%E7%9A%84%20IDE%20%E6%96%B9%E6%B3%95%E5%8F%AF%E4%BB%A5%E5%B0%86%20S32%20Design%20Studion%20%E8%B0%83%E8%AF%95%E5%99%A8%E6%8E%A7%E5%88%B6%E5%8F%B0%E5%86%85%E5%AE%B9%E5%AF%BC%E5%87%BA%E6%88%96%E9%87%8D%E5%AE%9A%E5%90%91%E5%88%B0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%EF%BC%9F%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20IDE%20%E8%B0%83%E8%AF%95%E5%99%A8%E6%8E%A7%E5%88%B6%E5%8F%B0%E6%98%BE%E7%A4%BA%E7%94%A8%E4%BA%8E%E6%8D%95%E8%8E%B7%E5%AE%9E%E6%97%B6%E8%AF%8A%E6%96%AD%E4%BF%A1%E6%81%AF%E4%BB%A5%E8%BF%9B%E8%A1%8C%E5%8D%95%E7%8B%AC%E5%88%86%E6%9E%90%E7%9A%84%E5%A4%A7%E5%9E%8B%E6%95%B0%E6%8D%AE%E6%95%B0%E7%BB%84%EF%BC%88%E4%BD%BF%E7%94%A8%E8%B0%83%E8%AF%95%E5%99%A8%E5%91%BD%E4%BB%A4%EF%BC%8C%E5%A6%82%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Eprint%20-array%20on%20-array-indexes%20on%20-elements%20unlimited%20-pretty%20off%20--%20waitrec_m%3C%2FFONT%3E%20%EF%BC%89%EF%BC%8C%E4%BD%86%E6%88%91%E5%BF%85%E9%A1%BB%E6%89%8B%E5%8A%A8%E9%80%89%E6%8B%A9%2F%E5%A4%8D%E5%88%B6%E7%94%9F%E6%88%90%E7%9A%84%E6%8E%A7%E5%88%B6%E5%8F%B0%E6%96%87%E6%9C%AC%E6%89%8D%E8%83%BD%E5%B0%86%E5%85%B6%E4%BF%9D%E5%AD%98%E5%9C%A8%E5%85%B6%E4%BB%96%E5%9C%B0%E6%96%B9%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E5%B8%8C%E6%9C%9B%E8%83%BD%E5%A4%9F%E6%9B%B4%E5%A5%BD%E5%9C%B0%E5%AE%9E%E7%8E%B0%E8%BF%99%E4%B8%AA%E8%BF%87%E7%A8%8B%E7%9A%84%E8%87%AA%E5%8A%A8%E5%8C%96%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1925465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EEclipse%20IDE%20%E4%BD%BF%E7%94%A8%E5%92%8C%E8%AE%BE%E7%BD%AE%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1927284%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%8D%95%E8%8E%B7%20IDE%20%E8%B0%83%E8%AF%95%E5%99%A8%E6%8E%A7%E5%88%B6%E5%8F%B0%E8%BE%93%E5%87%BA%E5%88%B0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1927284%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E7%BB%88%E4%BA%8E%E6%89%BE%E5%88%B0%E4%BA%86%E7%AD%94%E6%A1%88%20-%20IDE%20%E8%B0%83%E8%AF%95%E6%8E%A7%E5%88%B6%E5%8F%B0%E6%9C%89%E5%91%BD%E4%BB%A4%E2%80%9Cdump%E2%80%9D%E5%92%8C%E2%80%9Cset%20logging%E2%80%9D%E9%80%89%E9%A1%B9%EF%BC%8C%E5%8F%AF%E4%BB%A5%E5%B0%86%E8%BE%93%E5%87%BA%E9%87%8D%E5%AE%9A%E5%90%91%E5%88%B0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E7%AD%94%E6%A1%88%E5%B0%B1%E5%9C%A8%20Juli%C3%A1n%20%E6%8F%90%E4%BE%9B%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E9%93%BE%E6%8E%A5%E4%B9%8B%E4%B8%80%E4%B8%AD%EF%BC%88%E5%B0%86%E8%B0%83%E8%AF%95%E6%8E%A7%E5%88%B6%E5%8F%B0%E9%87%8D%E5%AE%9A%E5%90%91%E5%88%B0%E6%96%87%E4%BB%B6%20-%20NXP%20%E7%A4%BE%E5%8C%BA%EF%BC%89%20-%20%E6%88%91%E5%AE%8C%E5%85%A8%E9%94%99%E8%BF%87%E4%BA%86%E8%AF%A5%E9%93%BE%E6%8E%A5%E4%B8%AD%E7%9A%84%E5%8F%82%E8%80%83%EF%BC%81%3CBR%20%2F%3E%3CBR%20%2F%3E%20Juli%C3%A1n%20-%20%E6%8A%B1%E6%AD%89%EF%BC%8C%E8%B0%A2%E8%B0%A2%EF%BC%81%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%B4%E5%A4%AB%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1927137%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%8D%95%E8%8E%B7%20IDE%20%E8%B0%83%E8%AF%95%E5%99%A8%E6%8E%A7%E5%88%B6%E5%8F%B0%E8%BE%93%E5%87%BA%E5%88%B0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1927137%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%B0%A2%E8%B0%A2%E4%BD%A0%E7%9A%84%E5%BB%BA%E8%AE%AE%20Juli%C3%A1n%3CBR%20%2F%3E%20-%20%E4%B8%8D%E5%B9%B8%E7%9A%84%E6%98%AF%EF%BC%8C%E6%88%91%E7%9B%B8%E4%BF%A1%E8%BF%99%E4%BB%8D%E7%84%B6%E4%BE%9D%E8%B5%96%E4%BA%8E%20stdio%20%E5%BA%93%E5%87%BD%E6%95%B0%E7%9A%84%E4%BD%BF%E7%94%A8%EF%BC%8C%E6%A0%B9%E6%8D%AE%E6%88%91%E4%B9%8B%E5%89%8D%E7%9A%84%E8%A7%A3%E9%87%8A%EF%BC%8C%E6%88%91%E4%B8%8D%E8%83%BD%E5%9C%A8%E6%88%91%E7%9A%84%E8%AE%BE%E8%AE%A1%E4%B8%AD%E4%BD%BF%E7%94%A8%E8%BF%99%E4%BA%9B%E5%87%BD%E6%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22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%8D%95%E8%8E%B7%20IDE%20%E8%B0%83%E8%AF%95%E5%99%A8%E6%8E%A7%E5%88%B6%E5%8F%B0%E8%BE%93%E5%87%BA%E5%88%B0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1926132%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EJuli%C3%A1n%20-%20%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%E6%82%A8%E6%8A%BD%E5%87%BA%E6%97%B6%E9%97%B4%E5%9B%9E%E5%A4%8D%EF%BC%8C%E6%88%91%E4%BB%AC%E9%9D%9E%E5%B8%B8%E6%84%9F%E6%BF%80%EF%BC%81%3CBR%20%2F%3E%3CBR%20%2F%3E%E4%B8%8D%E5%B9%B8%E7%9A%84%E6%98%AF%EF%BC%8C%E6%88%91%E6%97%A0%E6%B3%95%E5%B0%86%E4%BB%BB%E4%BD%95%20Semihosting%20%E5%87%BD%E6%95%B0%E5%B5%8C%E5%85%A5%E5%88%B0%E6%88%91%E6%AD%A3%E5%9C%A8%E6%B5%8B%E8%AF%95%E7%9A%84%E4%BB%A3%E7%A0%81%E4%B8%AD%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E5%85%B7%E6%9C%89%E6%97%B6%E9%97%B4%E5%85%B3%E9%94%AE%E8%A1%8C%E4%B8%BA%EF%BC%8C%E4%BC%9A%E5%9B%A0%E6%B7%BB%E5%8A%A0%20fprintf()%20%E6%88%96%E7%B1%BB%E4%BC%BC%E7%9A%84%E5%BA%93%E8%B0%83%E7%94%A8%E8%80%8C%E4%B8%AD%E6%96%AD%E3%80%82%E6%88%91%E5%8F%AA%E6%9C%89%E8%B6%B3%E5%A4%9F%E7%9A%84%E5%90%9E%E5%90%90%E8%83%BD%E5%8A%9B%E5%B0%86%E8%AF%8A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