xCode not showing descriptive error in log console - just hex values - xcode

Here is my console of an error occurring in my applications(iOS). i understand what the error is, but i don't know how to get a more descriptive trace of where this is in my code. Before iOS5 and the new xCode, i would be pointed to the line of error in my code. Now most times all i see is a hexadecimal output, and sometimes i get a short descriptive output like shown below.
2011-11-14 09:37:42.868 AppName[916:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: row (0) beyond bounds (0) for section (0).'
*** First throw call stack:
(0x343288bf 0x345781e5 0x343287b9 0x343287db 0x3779ef1f 0x50cd 0x3428722b 0x4edb 0x4fe9 0x5059 0x3175 0x41f1 0x3770a7ff 0x37708f9d 0x376fb941 0x3776d541 0x2bdf 0x377097eb 0x377033bd 0x376d1921 0x376d13bf 0x376d0d2d 0x30b03df3 0x342fc553 0x342fc4f5 0x342fb343 0x3427e4dd 0x3427e3a5 0x37702457 0x376ff743 0x2987 0x23d0)
terminate called throwing an exception
How can i get a more descriptive log output on errors like this? I would like to be shown/brought to the line of error in my code. Hexadecimal output doesn't help me - or i don't know how to use it to my benefit.

You can print all of your item's attributes.
EDIT:
Error descriptions will be at console, there are no more description to reach.

Related

Getting this message app.js:33 Uncaught TypeError: Cannot read property 'appendChild' of null at HTMLButtonElement.addTodo

enter image description here
enter image description here
I had to initially put the behind the body because it was refreshing the page.
Now i'm running into this error "app.js:33 Uncaught TypeError: Cannot read property 'appendChild' of null
at HTMLButtonElement.addTodo"
Your selector is .todo-List, yet all your other class names don't use any upper-case characters, and your HTML shows class="todo-list" (list, not List!) as well.
So, I'd assume that this is a typo and should actually be todo-list with lower-case l, so you should change the line 4 to const todoList = document.querySelector('.todo-list').
The fact that you asked about the "message" of Cannot read property "appendChild" of null though sounds to me as if you didn't understand the error message. Please take the time to review this article and take a quick squiz at how to use a debugger. Especially the latter is a tremendously important skill that will help you trace back those issues yourself. I'm sure, had you realized that the issues comes from line 4, you'd eventually have discovered that the selector is wrong.

How to get Developer Exception page to show multiple lines of code around exception?

This page https://learn.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.builder.developerexceptionpageoptions states that a DeveloperExceptionPageOptions object can be passed as a parameter to app.UseDeveloperExceptionPage() and one of the properties on the options object is SourceCodeLineCount. Specifically, it says that the SourceCodeLineCount property:
Determines how many lines of code to include before and after the line of code present in an exception's stack frame. Only applies when symbols are available and source code referenced by the exception stack trace is present on the server.
But when I put the following code in the Configure method of the startup.cs class:
app.UseDeveloperExceptionPage( new DeveloperExceptionPageOptions() { SourceCodeLineCount = 10} );
The output in the Developer Exception Page doesn't appear to show the 20 lines of source code that it's suppose to.
How does one get the Developer Exception page to show multiple lines of code around exception?
I'm not sure if you're still having this problem or not, but have you tried browsers other than IE? When I'm running in Chrome, I'm seeing a little [+] symbol on the left of each line number, that can be used to expand each snippet of code.
The line that the error occurs is highlighted in red, and the SourceCodeLineCount value (in my case, set to 2) is used to display the number of lines above the line that caused your exception.
See sample screenshot below. Hope this helps!

SSIS: Data conversion failed from a Flat File Source

Good day.
The following are the errors that had occured while processing the flat file:
Error: 0xC02020A1 at Task, File [1]: Data conversion failed. The data conversion for column "Column 0" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
Error: 0xC020902A at Task, File [1]: The "output column "Column 0" (14)" failed because truncation occurred, and the truncation row disposition on "output column "Column 0" (14)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
Error: 0xC0202092 at Task, File [1]: An error occurred while processing file "filepath" on data row 1.
Error: 0xC0047038 at Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Retrieve Input Batch File" (1) returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
Source File is a Flat File
Data Type properties for External Column and Output Column is identical:
Data Type: String [DT_STR]
Length is 1143
I've tried to experiment with the values in the properties, but I got no luck. What could be the reason for the error?
In addition, I tried to test 2 files. First file got success result, while the latter did not. Difference between them is, the first one is Dos\Windows, while the other is UNIX. Does it affect the behavior of the flat file?
Thank you so much for your input :)
Go to your flat file connection manager>>> Flat file Source Editor then >>> Click on Error Output >>>> and then to the column in question and select Ignore Failure. This worked for me. (That is if the column size is right)

Unexpected token in Mocha/Chai

This is something I've wondered about for some time now, but only recently am I stuck on this. I am getting this error below when running my test in Mocha:
What does the (14:58) mean? I'm assuming it's the location of the syntax error, but how exactly do I read this in order to locate the error (for future reference)?
Thanks.
It means that node found something it couldn't handle at line 14, column 58 in core.spec.js. Note that the actual error that causes this could be located before this point if your syntax has logical errors.
Example:
if(foo === bar){
console.log('foo equals bar')}
} else { // <-- Unexpected token 'else', but error is on previous line
console.log('nope');
}
would trigger an error on line 3, column 3. But the actual error is the accidental extra ending curly bracket.
(But please, don't post images of code and terminal output. Text will do very well.)

when does occur this crash report?

I got this crash report from my app, and I can't reproduce it as I don't know when it happens and how can happen.
Someone can tell me what sees from this report?
Code:
Error Name: NilObjectException
Error Number: 0
Error Message:
Stack Trace:
RaiseNilObjectException
ConScheduler.ConScheduler.StyleGrid1_DropObject%%o<ConScheduler.ConScheduler>o<DragItem>i4
_Z17UpdateMouseCursorv
Delegate.Invoke%%
Application._CallFunctionWithExceptionHandling%%o<Application>p
_Z33CallFunctionWithExceptionHandlingPFvvE
_Z8mainloopv
RuntimeRun
REALbasic._RuntimeRun
_Main
% main
Regards,
Pentium10
Based on the text, you might want to check out your usage of the Einhugur StyleGrid. It appears the NilObjectException came from there.

Resources