-24

https://stackoverflow.com/questions/42797571/how-do-i-debug-error-at-object-f-loadjs-arcgis-com-3-19-init-js980

I don't actually see the problem here. Why does this have 4 down votes? I googled the error before I asked and I got nothing. It's well formatted. Is it because my name is Steve?

39
  • 5
    You have a comment telling you exactly what the problem is. Why are you asking us when you've already been told what the problem is?
    – Servy
    Mar 7, 2018 at 22:38
  • "Please share the code snippet in which the error occurs or create a fiddle for the same" Are you talking about this? Cause the code snippet wasn't something I had, nor was it actually important to the question I was asking.
    – user5451396
    Mar 7, 2018 at 22:42
  • 7
    You don't describe where/how you encountered this error at all. What code were you running that threw this error? Was it a script of yours? Something on the command line? You say that the code snippet isn't important to the question, but how would you know that if you don't know what the issue is?
    – Davy M
    Mar 7, 2018 at 22:49
  • 5
    I'm well aware that you've said that you can't provide enough information in your question to make it answerable. That doesn't mean it's not important to your question that you provide enough information to make it answerable. The comments you've gotten and the votes on it are reflecting that.
    – Servy
    Mar 7, 2018 at 22:51
  • 1
    @Steve "so you're saying it got down voted because I didn't have enough information to make the question I wasn't asking answerable?" - I dunno. Maybe try, "providing enough information to make the question answerable"?
    – Mysticial
    Mar 7, 2018 at 22:53
  • 1
    @Steve You should provide enough information in your question for it to be answerable. Or not posted the question.
    – Servy
    Mar 7, 2018 at 22:53
  • 3
    @Steve If you're just looking to ask, "how do I debug any javascript problem" then that question is way too broad, and most certainly isn't answerable.
    – Servy
    Mar 7, 2018 at 22:56
  • 3
    What we don't know is where this error is coming from in the slightest. This could be anything from an error message you're seeing when powering on your computer to an error message that you're getting when downloading an app on your phone to an error thrown when running a specific command in a script of yours. Additionally, someone asked you for more information, and you decided that it was not relevant. The only real debugging help a person can actually give is "Try rebooting" because we assume this happened on something electronic. You need to include more information.
    – Davy M
    Mar 7, 2018 at 22:56
  • 4
    Well, that is the problem. You have to break out of your cubicle and make your life more complicated. It is the only way to do it, SO does not provide an alternative. Unpleasant, but you'll be happy with the end-result. First real win and all that, second time is going to be much easier. Mar 7, 2018 at 23:24
  • 2
    You'll have to make up your mind whether you are "not very advanced" or the "most advanced programmer in the office". The first statement is normal, the second one is easy to fix. Mar 7, 2018 at 23:33
  • 1
    You don't seem every inspired with what you do every day, forty hours a week, the prime hours of your life. You only have one. Clearly I don't understand that attitude, I'm sure I never will. Typical hazard of an SO contributor. Mar 7, 2018 at 23:43
  • 5
    This is starting to sound like an Eliza transcript. I'm hitting ^-C
    – jscs
    Mar 8, 2018 at 0:10
  • 8
    @JoshCaswell: do you often feel this way?
    – Jongware
    Mar 8, 2018 at 0:16
  • 7
    The TL;DR here is "You asked a question that wasn't appropriate for SO".... just learn from this and make your next question better. At the end of the day, SO isn't for ALL questions related to programming, and that's okay
    – Patrice
    Mar 8, 2018 at 0:35
  • 2
    TL;DR: Make a MCVE ("repro"), don't ask too generically, as it's too broad. Otherwise your question is unanswerable.
    – user202729
    Mar 8, 2018 at 2:06

1 Answer 1

26

How is it possible that one has an issue with code that clearly throws an error, yet they omit the code that throws the error, and only provide us a stack trace? We cannot read minds, nor can we infer based on context alone. We require the source code that actually shows what has broken in your environment. Without that I'm not clear what you expect from us.

25
  • But I didn't ask for you to solve my bug. I asked for direction in solving it myself. I also got exactly what I asked for from a user. I also explained that I didn't have access to the code and didn't even know which part of the 5k+ lines of code the error was coming from. There was no way for me to give you that information.
    – user5451396
    Mar 7, 2018 at 23:16
  • 3
    ...Did you write the code that somehow generated that error then? Or where did it come from? (These are the things I'm talking about; context and missing details would be invaluable here.)
    – Makoto
    Mar 7, 2018 at 23:18
  • 6
    @Steve everyone is telling you the same thing. It's okay that you want to solve it yourself, however you need to give context. That is the answer to your question. Nobody is saying that you are wrong for wanting to debug your code, they are all just saying at east some information about how you encountered this error is necessary to be a good question.
    – Davy M
    Mar 7, 2018 at 23:18
  • @Makoto no I did not. I don't know who wrote it honestly.
    – user5451396
    Mar 7, 2018 at 23:18
  • @Steve: So you inherited code from someone that uses this library?
    – Makoto
    Mar 7, 2018 at 23:19
  • @Makoto They used a bunch of files. I suppose it was a library. I don't know which one.
    – user5451396
    Mar 7, 2018 at 23:20
  • 14
    So here's the deal. You're a lot closer to the code that's causing the error @Steve. You need to narrow down where the error is occurring. Isolating where the problem actually is with your code is fundamental - I don't want to say "fundamental" since this is more like "breathing" - to your ability to debug, diagnose and fix code. It's also a hard requirement for anyone looking for help from this community. Without code, we're not much better than the wall.
    – Makoto
    Mar 7, 2018 at 23:22
  • 21
    @Steve: No, it got downvoted because all you gave us was a stack trace and we can't help you debug your code if there is no code.
    – Makoto
    Mar 7, 2018 at 23:24
  • 14
    @Steve It's not a hard question because the issue is difficult, it's a hard question because it is poorly written because it provides no context. That's why it is being downvoted, because it is a poor question.
    – Davy M
    Mar 7, 2018 at 23:25
  • 3
    If all you really have is a stack trace, keep looking. We're not going to be of much value. Even the answer you received is telling you to post some code which reproduces the problem. It's tough to tell if you needed help with this problem or if you didn't know how to actually debug your code, which are different (yet not mutually exclusive) problems to have.
    – Makoto
    Mar 7, 2018 at 23:30
  • 3
    That's...okay. Now I see what's going on. That's a much, much harder thing to deal with since we kind of assume that you do know how to debug your code...so it's not surprising at all that you received so much flak because you literally didn't know how to do what it is we were jumping up and down/screaming at you to do. ...Hmm.
    – Makoto
    Mar 7, 2018 at 23:33
  • 7
    Gonna be frank: I'm disturbed too, but for different reasons. Honestly I'm not sure if we can help you all that well since...I don't think we've ever supported users who haven't been able to debug their code.
    – Makoto
    Mar 7, 2018 at 23:37
  • 3
    @Steve Whatever it is that you did to encounter this error. You had to have done something, or else the stack trace just magically appeared out of no where. The answer that you said helped guessed that you encountered this error running an application that you would be able to debug and gave you a link to DevTools which would work for that circumstance. But you are saying you didn't have that code, so I would fail to understand how on earth the answer managed to help you anyways. Ergo, you must have had an application, and that application failed with this stack trace. There's Context.
    – Davy M
    Mar 7, 2018 at 23:38
  • 1
    Maybe the post should have been closed as a dupe of How can I debug my JavaScript code? Mar 7, 2018 at 23:43
  • 1
    @Steve Actually, it's not going away at all, unless you delete it yourself (or get your account deleted). There is an accepted answer, and the answer is not downvoted, so the question won't be automatically deleted. Mar 7, 2018 at 23:49