DO NOT USE! THIS IS AMBIGUOUS. You might be looking for [web-inspector].
Questions tagged [inspect]
610 questions
2
votes
1 answer
Lightweight alternatives to firebug lite
The website I'm debugging in ie6 has lots and lots of inefficient legacy code and when I try and run firebug lite to try and figure out a tricky hasLayout issue it crashes ie6.
Is there an alternative to firebug lite which simply recreates firebug's…

wheresrhys
- 22,558
- 19
- 94
- 162
2
votes
2 answers
Extract assigned variable name
See the update below
I even don't know how to make a short title for my problem.
In a class I have some class attributes of StringField class:
class Authors(Table):
# id field is already present
first_name = StringField(maxLength=100)
…

warvariuc
- 57,116
- 41
- 173
- 227
2
votes
0 answers
How to open "Inspect Element" in electron app
I am learning electron. So I want to open Inspect Element to debug my app.
I already have menu.js.
// @flow
import { app, Menu, shell, BrowserWindow, dialog } from 'electron';
export default class MenuBuilder {
mainWindow: BrowserWindow;
…

Abhishek kamal
- 432
- 1
- 5
- 13
2
votes
0 answers
How to list class (static) variables in the order they are written in Python?
Concider following example:
from collections import OrderedDict
class AnyAbstract:
#__dict__ = OrderedDict()#not working?
def classFields(self):
return {(key,value) for key,value in self.__class__.__dict__.items() if not
…

user184868
- 193
- 9
2
votes
2 answers
Parsing out data from pytest assert and converting into a string
I want to collect data about test to an external database, where I would collect all assert and parse the expected value versus the actual result.
To describe what I want in code:
test_something.py:
def test_me_1(send_to_test):
"""
…

tHeReaver
- 215
- 1
- 10
2
votes
0 answers
Nodemon Inspect address already in use when refresh with vscode debugger
I am debugging a node application in Visual Studio, so I have to attach create a new configuration in launch.json:
{
"type": "node",
"request": "attach",
"name": "Debug API",
"remoteRoot": "/workspaces/telehealth/projects/api",
…

Alan Grosz
- 1,175
- 10
- 15
2
votes
1 answer
Getting the list of classes in a given Python file
My goal is to fetch the list classes defined in a given Python file.
Following this link, I have implemented the following:
File b.py:
import imp
import inspect
module = imp.load_source("__inspected__", './a.py')
class_members =…

Edgar Navasardyan
- 4,261
- 8
- 58
- 121
2
votes
0 answers
Python: How to access parent class instance methods without inheritance?
Base class with abstract method _conn()
from cached_property import cached_property
class Base:
def __init__(self, conn_id):
"""Store secrets details"""
self.conn_id = conn_id
@cached_property
def…

hamzaahmad
- 133
- 2
- 7
2
votes
1 answer
How to get the correct signature of PyQt methods
I'm trying to use the inspect module to determine the Signature of methods and I'm running into a problem with PyQt widgets. The widgets report a signature containing *args and **kwargs, but cannot be called with arbitrary keyword arguments:
>>>…

Mate de Vita
- 1,102
- 12
- 32
2
votes
4 answers
Firebug: How can I inspect an element I can't click on?
I'm trying to use Firebug to inspect a page element that appears when I hover over a photo.
Problem is, the element's position is dynamically offset from the mouse position, so it's impossible for me to right-click on it to get the "Inspect Element"…

jawns317
- 1,726
- 2
- 17
- 26
2
votes
1 answer
Proper way of getting path of main script from library in Python
I'm writing a Python library which which you can load an object from a file and do something with it. For convenience, I'd like to make it so that people can provide three kinds of paths:
A path starting with a "/", which will be interpreted as an…

MarcTheSpark
- 473
- 5
- 14
2
votes
0 answers
Retrieve non-control child from automation element
Using the inspect.exe tool, I can see that an automation element has 6 children, but one of them has both the isControlElement and isContentElement set to false. I then used windows automation in c#, to try and retriev the children of the automation…

Filip5991
- 383
- 1
- 3
- 13
2
votes
1 answer
Easy generic runtime monkey patching in Python?
I sometime would like to apply small fixes to small issues, just for testing, or for internal purposes.
For example I would like to just replace self.builder.current_docname with node.source in…

nowox
- 25,978
- 39
- 143
- 293
2
votes
3 answers
Inspecting firefox with firebug
Using ColorZilla I found an interesting feature. If I pick a color from firefox (bars,tabs or anything else of the browser) and then go to:
ColorZilla > Inspect Last Element > In
Firebug
Then I can see the markup,css,js that firefox uses in the…

Sotiris
- 38,986
- 11
- 53
- 85
2
votes
1 answer
mocha --inspect-brk seems to have stopped working - test file does not run when debugger attached
I have created a public repository to demonstrate this not working in a basic module that simply contains one mocha test file and a script to run said file through mocha with debugger attached:
https://github.com/corey-cosman/mocha-test-debug
to…

coreycosman
- 315
- 2
- 7