Questions tagged [inspection]

111 questions
11
votes
3 answers

Linux tools to inspect Windows DLLs

I have to debug a problem with Windows DLLs, but I'm running Linux exclusively, so I was wondering whether there are (preferably command-line) tools to inspect Windows DLLs under Linux. What I'm looking for is mainly the list of exported symbols.
daniel kullmann
  • 13,653
  • 8
  • 51
  • 67
9
votes
3 answers

findViewById() may produce NullPointerException

I have many of these calls: (ListView) getView().findViewById(R.id.main_list_view); (TextView) getView().findViewById(R.id.items_no); .... and AndroidStudio tells me that they may procude a NullPointerException: Method invocation…
Phate01
  • 2,499
  • 2
  • 30
  • 55
9
votes
5 answers

Python - can function call itself without explicitly using name?

Or a broader question: how to make a recursive function in python and, when changing its name, it only has to be changed in the declaration?
user4259083
7
votes
2 answers

How to get hold of the object missing an attribute

Suppose we try to access a non-existing attribute: >>> {'foo': 'bar'}.gte('foo') # well, I meant “get”! Python’s AttributeError only has the attribute args with a string containing the finished error message: 'dict' object has no attribute…
flying sheep
  • 8,475
  • 5
  • 56
  • 73
7
votes
7 answers

Idea inspects batis mapper bean wrong

There's web project with Spring and MyBatis. I use IntelliJ IDEA for development. IDEA cannot correctly inspect MyBatis beans and produces annoying underscorings, though link to Data Access Object is present. Inspection comment: Could not…
6
votes
0 answers

How to deactivate the "Inspection 'Annotator' Options" from context actions in IntelliJ

Whenever I want to use context actions (⌥↩) to, for example, add a missing import, I have the following option appear first, and I have to select it twice for my import proposal options to appear. How can I deactivate this and get the right context…
APE
  • 1,130
  • 7
  • 21
6
votes
1 answer

IntelliJ inspections for unclosed PreparedStatements/ResultSets/Connections

Are there any IntelliJ inspections for unclosed PreparedStatements/ResultSets/Connections or anything using the standard Java SQL libraries? I have to work with a relatively old Java codebase that uses a lot of SQL that isn't wrapped in a…
maschwenk
  • 569
  • 1
  • 9
  • 20
6
votes
2 answers

Use the console to see available methods on an object?

Is there any way I can use the console to see the methods available on a JS object? I'm thinking of something like this: > var myArray = [1,2,3]; undefined > myArray [1, 2, 3] > myArray.logme = function() { console.log(this); }; function () {…
Richard
  • 62,943
  • 126
  • 334
  • 542
6
votes
2 answers

How can I export or save a inspected object structure in eclipse?

Is there a way to save/export (also need to be able to view later) an inspected object structure? Possibly export to a XML or JSON structure?
ruwan.jayaweera
  • 1,196
  • 3
  • 11
  • 25
5
votes
2 answers

Safari won't see/show the web inspector of my app's WebView (WKWebView or UiWebView)

I have been working on my appliance years now, and as always using the Safari's Web Inspector. But today my Mac's Safari Inspector won't show/see anymore my App's webview, anyone have a clue about what could it be? MacOS: 13.3.1 Processor: M1…
5
votes
4 answers

How to enumerate column names with NHibernate?

I've got a class with a bunch of [ColumnName("foo")] NHibernate attributes. Is there an easy way to ask NHibernate to list all of the ColumnNames for a given class? It sounds like it should be really easy but I'm just not seeing any kind of…
Ken
  • 2,651
  • 3
  • 19
  • 17
5
votes
1 answer

Given a python object already created, is there a way to find out the actual parameters of construction by inspection?

Given an object already created, what is the best way to figure out how it was created? Basically, I would like to figure out the actual parameters during the object creation (eventually the actual parameters passed to the class init method). Note…
HAltos
  • 701
  • 7
  • 6
5
votes
4 answers

Decorator changing function status from method to function

[Updated]: Answer inline below question I have an inspecting program and one objective is for logic in a decorator to know whether the function it is decorating is a class method or regular function. This is failing in a strange way. Below is code…
muckabout
  • 1,923
  • 1
  • 19
  • 31
5
votes
2 answers

How can we print the variable name along with its value in python, which will be useful during debugging?

I have written something like this multiple times: print 'customer id: ', customerId I want to have a function which prints variable name along with the value >>myprint(customerId) >>customerId: 12345
Kumar Deepak
  • 473
  • 4
  • 18
5
votes
1 answer

What is the dif between Software testing and Software inspection?

So I've read some reports about both of these methods but I can't really grasp the dif between the two. If anyone could sum it up for me or try to explain it I'd be ever so grateful! BR, Fredrik