You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @summary A short summary of the purpose of this class## A description of what this class does## @example# include nanoclassnano{notify{'Notify test': }}
Add a Breakpoint on the line with the notify command
Hit F5
Conclusion before looking on the Output Log
My initial thought that the expansion will take care of that and debugging will work out of the box is clearly false or a bug. The fact that no tutorial or documentation ever mentions such a thing makes me suspucious.
I tried several approches.
I also tried a worldwide search to find some hints or whatever.
I found a mention that a class will not be executed without being included somewhere. This seems to be true even if using the debugger which is a bit counterintuitive.
It nearly kills the reason of this extention for me, that should take care of these things. But well comming that far I tried some approaches to add an include into the module so that the debugger will hit the breakpoint.
Include the class itself in the init.pp
1.1) Well this does not feel right at all, even if debugging works
Add a class in the provided examples directory and add the include line there and start debugging with this classes
2.1) This feels the most natural solution, since examples should be added and debuger could run the examples file
2.2) However this approach results in an "Evaluation Error: Error while evaluating a Function Call, Could not find class ::nano for b2053ca868f5" Exception.
Output Log
puppet apply /workspaces/AniManga-nano/nano/manifests/init.pp --detailed-exitcodes --logdest debugserver --noop --debug
Debug: Runtime environment: puppet_version=7.10.0, ruby_version=2.7.3, run_mode=user, default_encoding=US-ASCII
Debug: Loading external facts from /opt/puppetlabs/puppet/cache/facts.d
Debug: Facter: Facter version: 4.2.3
Debug: Facter: Resolving facts sequentially
Debug: Facter: Loading all internal facts
Debug: Facter: Loading custom facts
Debug: Facter: Loading external facts
Debug: Facter: Executing command: uname -m &&
uname -n &&
uname -p &&
uname -r &&
uname -s &&
uname -v
Debug: Facter: File at: /opt/puppetlabs/puppet/VERSION is not accessible.
Debug: Facter: Executing command: ip -o link show
Debug: Facter: Failed while executing 'ip -o link show': No such file or directory - ip
Debug: Facter: Adding to interface lo, binding:
{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}
Debug: Facter: Adding to interface eth0, binding:
{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}
Debug: Facter: Executing command: ip link show
Debug: Facter: Failed while executing 'ip link show': No such file or directory - ip
Debug: Facter: Get DHCP for interface lo
Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command
Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}]}
Debug: Facter: Get DHCP for interface tunl0
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhcpcd command
Debug: Facter: Found interface tunl0 with {}
Debug: Facter: Get DHCP for interface sit0
Debug: Facter: Attempt to get DHCP for interface sit0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface sit0, from dhcpcd command
Debug: Facter: Found interface sit0 with {}
Debug: Facter: Get DHCP for interface eth0
Debug: Facter: Attempt to get DHCP for interface eth0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface eth0, from dhcpcd command
Debug: Facter: Found interface eth0 with {:mac=>"02:42:ac:11:00:02", :bindings=>[{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}]}
Debug: Facter: Executing command: ip route show
Debug: Facter: Failed while executing 'ip route show': No such file or directory - ip
Debug: Facter: Executing command: ip -6 route show
Debug: Facter: Failed while executing 'ip -6 route show': No such file or directory - ip
Debug: Facter: Executing command: lscpu | grep -e 'Thread(s)' -e 'Core(s)'
Debug: Facter: File at: /etc/ssh/ssh_host_rsa_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh/ssh_host_dsa_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh/ssh_host_ecdsa_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh/ssh_host_ed25519_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh_host_rsa_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh_host_dsa_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh_host_ecdsa_key.pub is not accessible.
Debug: Facter: File at: /etc/ssh_host_ed25519_key.pub is not accessible.
Debug: Facter: File at: /usr/local/etc/ssh_host_rsa_key.pub is not accessible.
Debug: Facter: File at: /usr/local/etc/ssh_host_dsa_key.pub is not accessible.
Debug: Facter: File at: /usr/local/etc/ssh_host_ecdsa_key.pub is not accessible.
Debug: Facter: File at: /usr/local/etc/ssh_host_ed25519_key.pub is not accessible.
Debug: Facter: Executing command: augparse --version 2>&1
Debug: Facter: Resolving fact mountpoints, but got cannot load such file -- sys/filesystem at /opt/puppetlabs/pdk/private/ruby/2.7.3/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
Debug: Facter: No Xen hypervisor detected.
Debug: Facter: Executing command: virt-what
Debug: Facter: Failed while executing 'virt-what': No such file or directory - virt-what
Debug: Facter: Executing command: lspci
Debug: Facter: Failed while executing 'lspci': No such file or directory - lspci
Debug: Facter: Detected product name:
Debug: Facter: Detected hypervisor
Debug: Facter: Detected bios vendor:
Debug: Facter: No Vmware hypervisor detected.
Debug: Facter: File at: /proc/xen/capabilities is not accessible.
Debug: Facter: Executing command: ["/usr/sbin/xl", "/usr/sbin/xm"] list
Debug: Facter: Command ["/usr/sbin/xl", "/usr/sbin/xm"] list completed with the following stderr message: sh: 1: [/usr/sbin/xl,: not found
Debug: Facter: Linux Virtual Resolver
Debug: Facter: Fact value is: docker
Debug: Facter: Adding to interface lo, binding:
{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}
Debug: Facter: Adding to interface eth0, binding:
{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}
Debug: Facter: Executing command: ip link show
Debug: Facter: Failed while executing 'ip link show': No such file or directory - ip
Debug: Facter: Get DHCP for interface lo
Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command
Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}]}
Debug: Facter: Get DHCP for interface tunl0
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhcpcd command
Debug: Facter: Found interface tunl0 with {}
Debug: Facter: Get DHCP for interface sit0
Debug: Facter: Attempt to get DHCP for interface sit0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface sit0, from dhcpcd command
Debug: Facter: Found interface sit0 with {}
Debug: Facter: Get DHCP for interface eth0
Debug: Facter: Attempt to get DHCP for interface eth0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface eth0, from dhcpcd command
Debug: Facter: Found interface eth0 with {:mac=>"02:42:ac:11:00:02", :bindings=>[{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}]}
Debug: Facter: Executing command: ip route show
Debug: Facter: Failed while executing 'ip route show': No such file or directory - ip
Debug: Facter: Executing command: ip -6 route show
Debug: Facter: Failed while executing 'ip -6 route show': No such file or directory - ip
Debug: Facter: Tried to retrieve hostname and got: b2053ca868f5
Debug: Facter: Only managed to read hostname: b2053ca868f5, no domain was found.
Debug: Facter: FFI Getaddrinfo finished with exit status: 0
Debug: Facter: FFI Getaddrinfo returned an AddrInfo struct at address: #<FFI::MemoryPointer address=0x0000564e24027e70 size=8>
Debug: Facter: FFI AddrInfo struct has the fqdn: b2053ca868f5
Debug: Facter: FFI getaddrinfo was called and it retrieved:
Debug: Facter: Adding to interface lo, binding:
{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}
Debug: Facter: Adding to interface eth0, binding:
{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}
Debug: Facter: Executing command: ip link show
Debug: Facter: Failed while executing 'ip link show': No such file or directory - ip
Debug: Facter: Get DHCP for interface lo
Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command
Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}]}
Debug: Facter: Get DHCP for interface tunl0
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhcpcd command
Debug: Facter: Found interface tunl0 with {}
Debug: Facter: Get DHCP for interface sit0
Debug: Facter: Attempt to get DHCP for interface sit0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface sit0, from dhcpcd command
Debug: Facter: Found interface sit0 with {}
Debug: Facter: Get DHCP for interface eth0
Debug: Facter: Attempt to get DHCP for interface eth0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface eth0, from dhcpcd command
Debug: Facter: Found interface eth0 with {:mac=>"02:42:ac:11:00:02", :bindings=>[{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}]}
Debug: Facter: Executing command: ip route show
Debug: Facter: Failed while executing 'ip route show': No such file or directory - ip
Debug: Facter: Executing command: ip -6 route show
Debug: Facter: Failed while executing 'ip -6 route show': No such file or directory - ip
Debug: Facter: Adding to interface lo, binding:
{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}
Debug: Facter: Adding to interface eth0, binding:
{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}
Debug: Facter: Executing command: ip link show
Debug: Facter: Failed while executing 'ip link show': No such file or directory - ip
Debug: Facter: Get DHCP for interface lo
Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command
Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}]}
Debug: Facter: Get DHCP for interface tunl0
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhcpcd command
Debug: Facter: Found interface tunl0 with {}
Debug: Facter: Get DHCP for interface sit0
Debug: Facter: Attempt to get DHCP for interface sit0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface sit0, from dhcpcd command
Debug: Facter: Found interface sit0 with {}
Debug: Facter: Get DHCP for interface eth0
Debug: Facter: Attempt to get DHCP for interface eth0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface eth0, from dhcpcd command
Debug: Facter: Found interface eth0 with {:mac=>"02:42:ac:11:00:02", :bindings=>[{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}]}
Debug: Facter: Executing command: ip route show
Debug: Facter: Failed while executing 'ip route show': No such file or directory - ip
Debug: Facter: Executing command: ip -6 route show
Debug: Facter: Failed while executing 'ip -6 route show': No such file or directory - ip
Debug: Facter: Adding to interface lo, binding:
{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}
Debug: Facter: Adding to interface eth0, binding:
{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}
Debug: Facter: Executing command: ip link show
Debug: Facter: Failed while executing 'ip link show': No such file or directory - ip
Debug: Facter: Get DHCP for interface lo
Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command
Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}]}
Debug: Facter: Get DHCP for interface tunl0
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhcpcd command
Debug: Facter: Found interface tunl0 with {}
Debug: Facter: Get DHCP for interface sit0
Debug: Facter: Attempt to get DHCP for interface sit0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface sit0, from dhcpcd command
Debug: Facter: Found interface sit0 with {}
Debug: Facter: Get DHCP for interface eth0
Debug: Facter: Attempt to get DHCP for interface eth0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface eth0, from dhcpcd command
Debug: Facter: Found interface eth0 with {:mac=>"02:42:ac:11:00:02", :bindings=>[{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}]}
Debug: Facter: Executing command: ip route show
Debug: Facter: Failed while executing 'ip route show': No such file or directory - ip
Debug: Facter: Executing command: ip -6 route show
Debug: Facter: Failed while executing 'ip -6 route show': No such file or directory - ip
Debug: Facter: Adding to interface lo, binding:
{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}
Debug: Facter: Adding to interface eth0, binding:
{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}
Debug: Facter: Executing command: ip link show
Debug: Facter: Failed while executing 'ip link show': No such file or directory - ip
Debug: Facter: Get DHCP for interface lo
Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command
Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}]}
Debug: Facter: Get DHCP for interface tunl0
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface tunl0, from dhcpcd command
Debug: Facter: Found interface tunl0 with {}
Debug: Facter: Get DHCP for interface sit0
Debug: Facter: Attempt to get DHCP for interface sit0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface sit0, from dhcpcd command
Debug: Facter: Found interface sit0 with {}
Debug: Facter: Get DHCP for interface eth0
Debug: Facter: Attempt to get DHCP for interface eth0, from dhclient leases
Debug: Facter: Attempt to get DHCP for interface eth0, from dhcpcd command
Debug: Facter: Found interface eth0 with {:mac=>"02:42:ac:11:00:02", :bindings=>[{:address=>"172.17.0.2", :netmask=>"255.255.0.0", :network=>"172.17.0.0"}]}
Debug: Facter: Executing command: ip route show
Debug: Facter: Failed while executing 'ip route show': No such file or directory - ip
Debug: Facter: Executing command: ip -6 route show
Debug: Facter: Failed while executing 'ip -6 route show': No such file or directory - ip
Debug: Facter: Executing command: blkid
Debug: Facter: Executing command: lsblk -fp
Debug: Facter: File at: /proc/sys/crypto/fips_enabled is not accessible.
Debug: Facter: Executing command: cat /proc/self/mounts
Debug: Facter: Executing command: cat /proc/self/mounts
Debug: Facter: Executing command: cat /proc/self/mounts
Debug: Facter: Executing command: cat /proc/self/mounts
Debug: Facter: Executing command: cat /proc/self/mounts
Debug: Facter: Executing command: ps -o etime= -p "1"
Debug: Facter: custom fact puppetversion got resolved from: ["/opt/puppetlabs/pdk/private/ruby/2.7.3/lib/ruby/gems/2.7.0/gems/puppet-7.10.0/lib/puppet.rb", 196]
Debug: Facter: Loading all internal facts
Debug: Facter: value for agent_specified_environment is still nil
Debug: Facter: Loading all internal facts
Debug: Facter: fact "os.distro.release" has resolved to: {"full"=>"18.04", "major"=>"18.04"}
Debug: Facter: fact "os.release" has resolved to: {"full"=>"18.04", "major"=>"18.04"}
Debug: Facter: fact "operatingsystemmajrelease" has resolved to: 18.04
Debug: Facter: fact "operatingsystemrelease" has resolved to: 18.04
Debug: Facter: fact "os.architecture" has resolved to: amd64
Debug: Facter: fact "architecture" has resolved to: amd64
Debug: Facter: fact "os.distro.description" has resolved to: Ubuntu 18.04.5 LTS
Debug: Facter: fact "os.distro.id" has resolved to: Ubuntu
Debug: Facter: fact "os.distro.codename" has resolved to: bionic
Debug: Facter: fact "dhcp_servers" has resolved to: {"system"=>nil}
Debug: Facter: fact "memory.system.available_bytes" has resolved to: 4528226304
Debug: Facter: fact "memoryfree_mb" has resolved to: 4318.453125
Debug: Facter: fact "memory.system.capacity" has resolved to: 27.28%
Debug: Facter: fact "memory.system.total" has resolved to: 5.80 GiB
Debug: Facter: fact "memorysize" has resolved to: 5.80 GiB
Debug: Facter: fact "memory.system.available" has resolved to: 4.22 GiB
Debug: Facter: fact "memoryfree" has resolved to: 4.22 GiB
Debug: Facter: fact "memory.system.used" has resolved to: 1.58 GiB
Debug: Facter: fact "memory.system.total_bytes" has resolved to: 6226886656
Debug: Facter: fact "memorysize_mb" has resolved to: 5938.421875
Debug: Facter: fact "memory.system.used_bytes" has resolved to: 1698660352
Debug: Facter: fact "processors.models" has resolved to: ["AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor", "AMD FX(tm)-8350 Eight-Core Processor"]
Debug: Facter: fact "processors.cores" has resolved to: 4
Debug: Facter: fact "processors.speed" has resolved to: 4.02 GHz
Debug: Facter: fact "processors.physicalcount" has resolved to: 1
Debug: Facter: fact "physicalprocessorcount" has resolved to: 1
Debug: Facter: fact "processors.threads" has resolved to: 2
Debug: Facter: fact "processors.count" has resolved to: 8
Debug: Facter: fact "processorcount" has resolved to: 8
Debug: Facter: fact "processors.isa" has resolved to: x86_64
Debug: Facter: fact "hardwareisa" has resolved to: x86_64
Debug: Facter: fact "network_lo" has resolved to: 127.0.0.0
Debug: Facter: fact "network_eth0" has resolved to: 172.17.0.0
Debug: Facter: fact "kernelmajversion" has resolved to: 5.10
Debug: Facter: fact "macaddress_eth0" has resolved to: 02:42:ac:11:00:02
Debug: Facter: fact "processor0" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor1" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor2" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor3" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor4" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor5" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor6" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "processor7" has resolved to: AMD FX(tm)-8350 Eight-Core Processor
Debug: Facter: fact "kernelrelease" has resolved to: 5.10.60.1-microsoft-standard-WSL2
Debug: Facter: fact "augeas.version" has resolved to: 1.8.1
Debug: Facter: fact "augeasversion" has resolved to: 1.8.1
Debug: Facter: fact "path" has resolved to: /opt/puppetlabs/pdk/bin:/opt/puppetlabs/pdk/private/ruby/2.7.3/bin:/opt/puppetlabs/pdk/private/git/mingw64/bin:/opt/puppetlabs/pdk/private/git/mingw64/libexec/git-core:/opt/puppetlabs/pdk/private/git/usr/bin:/vscode/vscode-server/bin/linux-x64/3a6960b964327f0e3882ce18fcebd07ed191b316/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/pdk/private/git/bin
Debug: Facter: fact "hypervisors.docker" has resolved to: {"id"=>"b2053ca868f506aa5ba89629c63d6f070357c32caf3b4de61499d1f1af1d048e"}
Debug: Facter: fact "facterversion" has resolved to: 4.2.3
Debug: Facter: fact "virtual" has resolved to: docker
Debug: Facter: fact "networking.ip" has resolved to: 172.17.0.2
Debug: Facter: fact "ipaddress" has resolved to: 172.17.0.2
Debug: Facter: fact "networking.hostname" has resolved to: b2053ca868f5
Debug: Facter: fact "hostname" has resolved to: b2053ca868f5
Debug: Facter: fact "networking.fqdn" has resolved to: b2053ca868f5
Debug: Facter: fact "fqdn" has resolved to: b2053ca868f5
Debug: Facter: fact "networking.netmask" has resolved to: 255.255.0.0
Debug: Facter: fact "netmask" has resolved to: 255.255.0.0
Debug: Facter: fact "networking.mac" has resolved to: 02:42:ac:11:00:02
Debug: Facter: fact "macaddress" has resolved to: 02:42:ac:11:00:02
Debug: Facter: fact "networking.network" has resolved to: 172.17.0.0
Debug: Facter: fact "network" has resolved to: 172.17.0.0
Debug: Facter: fact "networking.interfaces" has resolved to: {"lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "ip"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}, "tunl0"=>{}, "sit0"=>{}, "eth0"=>{"mac"=>"02:42:ac:11:00:02", "bindings"=>[{"address"=>"172.17.0.2", "netmask"=>"255.255.0.0", "network"=>"172.17.0.0"}], "ip"=>"172.17.0.2", "netmask"=>"255.255.0.0", "network"=>"172.17.0.0"}}
Debug: Facter: fact "networking.primary" has resolved to: eth0
Debug: Facter: fact "ipaddress_lo" has resolved to: 127.0.0.1
Debug: Facter: fact "ipaddress_eth0" has resolved to: 172.17.0.2
Debug: Facter: fact "identity.privileged" has resolved to: true
Debug: Facter: fact "identity.user" has resolved to: root
Debug: Facter: fact "id" has resolved to: root
Debug: Facter: fact "identity.uid" has resolved to: 0
Debug: Facter: fact "identity.group" has resolved to: root
Debug: Facter: fact "gid" has resolved to: root
Debug: Facter: fact "identity.gid" has resolved to: 0
Debug: Facter: fact "partitions" has resolved to: {"/dev/loop1"=>{"size_bytes"=>365875200, "size"=>"348.93 MiB", "backing_file"=>"/mnt/host/wsl/docker-desktop-data/isocache/3bd803116f77cad7a4331e6f0eab647f39611ad8b8d8d4f7ef171280d941ebd0.iso"}, "/dev/loop0"=>{"size_bytes"=>401020928, "size"=>"382.44 MiB", "backing_file"=>"/mnt/host/wsl/docker-desktop-data/isocache/ffcd3fc43aa23b93deb260659b266bd76635342dd3ceed98d05808208309833b.iso"}}
Debug: Facter: fact "fips_enabled" has resolved to: false
Debug: Facter: fact "os.name" has resolved to: Ubuntu
Debug: Facter: fact "operatingsystem" has resolved to: Ubuntu
Debug: Facter: fact "os.hardware" has resolved to: x86_64
Debug: Facter: fact "hardwaremodel" has resolved to: x86_64
Debug: Facter: fact "os.family" has resolved to: Debian
Debug: Facter: fact "osfamily" has resolved to: Debian
Debug: Facter: fact "os.selinux.enabled" has resolved to: false
Debug: Facter: fact "selinux" has resolved to: false
Debug: Facter: fact "interfaces" has resolved to: eth0,lo,sit0,tunl0
Debug: Facter: fact "disks" has resolved to: {"sdb"=>{"model"=>"Virtual Disk", "size_bytes"=>274877906944, "size"=>"256.00 GiB", "vendor"=>"Msft", "type"=>"hdd"}, "sdc"=>{"model"=>"Virtual Disk", "size_bytes"=>274877906944, "size"=>"256.00 GiB", "vendor"=>"Msft", "type"=>"hdd"}, "sda"=>{"model"=>"Virtual Disk", "size_bytes"=>274877906944, "size"=>"256.00 GiB", "vendor"=>"Msft", "type"=>"hdd"}}
Debug: Facter: fact "blockdevices" has resolved to: sdb,sdc,sda
Debug: Facter: fact "blockdevice_sdb_model" has resolved to: Virtual Disk
Debug: Facter: fact "blockdevice_sdc_model" has resolved to: Virtual Disk
Debug: Facter: fact "blockdevice_sda_model" has resolved to: Virtual Disk
Debug: Facter: fact "blockdevice_sdb_size" has resolved to: 274877906944
Debug: Facter: fact "blockdevice_sdc_size" has resolved to: 274877906944
Debug: Facter: fact "blockdevice_sda_size" has resolved to: 274877906944
Debug: Facter: fact "blockdevice_sdb_vendor" has resolved to: Msft
Debug: Facter: fact "blockdevice_sdc_vendor" has resolved to: Msft
Debug: Facter: fact "blockdevice_sda_vendor" has resolved to: Msft
Debug: Facter: fact "kernelversion" has resolved to: 5.10.60
Debug: Facter: fact "is_virtual" has resolved to: true
Debug: Facter: fact "system_uptime.days" has resolved to: 0
Debug: Facter: fact "uptime_days" has resolved to: 0
Debug: Facter: fact "system_uptime.uptime" has resolved to: 0:55 hours
Debug: Facter: fact "uptime" has resolved to: 0:55 hours
Debug: Facter: fact "system_uptime.seconds" has resolved to: 3345
Debug: Facter: fact "uptime_seconds" has resolved to: 3345
Debug: Facter: fact "system_uptime.hours" has resolved to: 0
Debug: Facter: fact "uptime_hours" has resolved to: 0
Debug: Facter: fact "netmask_lo" has resolved to: 255.0.0.0
Debug: Facter: fact "netmask_eth0" has resolved to: 255.255.0.0
Debug: Facter: fact "filesystems" has resolved to: btrfs,ext2,ext3,ext4,iso9660,msdos,squashfs,udf,vfat,xfs
Debug: Facter: fact "ruby.sitedir" has resolved to: /opt/puppetlabs/pdk/private/ruby/2.7.3/lib/ruby/site_ruby/2.7.0
Debug: Facter: fact "rubysitedir" has resolved to: /opt/puppetlabs/pdk/private/ruby/2.7.3/lib/ruby/site_ruby/2.7.0
Debug: Facter: fact "ruby.platform" has resolved to: x86_64-linux
Debug: Facter: fact "rubyplatform" has resolved to: x86_64-linux
Debug: Facter: fact "ruby.version" has resolved to: 2.7.3
Debug: Facter: fact "rubyversion" has resolved to: 2.7.3
Debug: Facter: fact "kernel" has resolved to: Linux
Debug: Facter: fact "timezone" has resolved to: UTC
Debug: Facter: fact "load_averages" has resolved to: {"1m"=>0.08, "5m"=>0.02, "15m"=>0.01}
Debug: Facter: fact "puppetversion" has resolved to: 7.10.0
Debug: Evicting cache entry for environment :production
Debug: Deleted text domain :production: false
Debug: Facter: resolving fact with user_query: fqdn
Debug: Facter: Searching fact: fqdn in file: fqdn.rb
Debug: Facter: Searching fact: fqdn in core facts and external facts
Debug: Facter: Loading all internal facts
Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x0000564e23795348 @name="fqdn", @fact_class=Facts::Linux::Networking::Fqdn, @user_query="fqdn", @type=:legacy, @file=nil>]
Debug: Facter: Loading external facts
Debug: Facter: fact "fqdn" has resolved to: b2053ca868f5
Debug: Facter: resolving fact with user_query: ipaddress
Debug: Facter: Searching fact: ipaddress in file: ipaddress.rb
Debug: Facter: Searching fact: ipaddress in core facts and external facts
Debug: Facter: Loading all internal facts
Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x0000564e22e638b0 @name="ipaddress", @fact_class=Facts::Linux::Networking::Ip, @user_query="ipaddress", @type=:legacy, @file=nil>]
Debug: Facter: Loading external facts
Debug: Facter: fact "ipaddress" has resolved to: 172.17.0.2
Debug: Facter: resolving fact with user_query: ipaddress6
Debug: Facter: Searching fact: ipaddress6 in file: ipaddress6.rb
Debug: Facter: Searching fact: ipaddress6 in core facts and external facts
Debug: Facter: Loading all internal facts
Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x0000564e22b7b4b8 @name="ipaddress6", @fact_class=Facts::Linux::Networking::Ip6, @user_query="ipaddress6", @type=:legacy, @file=nil>]
Debug: Facter: Loading external facts
Debug: Facter: Searching fact: ipaddress6 in all custom facts
Debug: Facter: Loading custom facts
Debug: Caching environment :production (ttl = 0 sec)
Debug: Facter: resolving fact with user_query: kernel
Debug: Facter: Searching fact: kernel in file: kernel.rb
Debug: Facter: Searching fact: kernel in core facts and external facts
Debug: Facter: Loading all internal facts
Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x0000564e23b8a7a0 @name="kernel", @fact_class=Facts::Linux::Kernel, @user_query="kernel", @type=:core, @file=nil>]
Debug: Facter: Loading external facts
Debug: Facter: fact "kernel" has resolved to: Linux
Debug: Facter: resolving fact with user_query: domain
Debug: Facter: Searching fact: domain in file: domain.rb
Debug: Facter: Searching fact: domain in core facts and external facts
Debug: Facter: Loading all internal facts
Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x0000564e239a8680 @name="domain", @fact_class=Facts::Linux::Networking::Domain, @user_query="domain", @type=:legacy, @file=nil>]
Debug: Facter: Loading external facts
Debug: Facter: Searching fact: domain in all custom facts
Debug: Facter: Loading custom facts
Notice: Compiled catalog for b2053ca868f5 in environment production in 0.05 seconds
Debug: Found in cache :production (ttl = 0 sec)
Debug: Creating default schedules
Debug: Loaded state in 0.00 seconds
Info: Using environment 'production'
Debug: Loaded state in 0.00 seconds
Info: Applying configuration version '1637076479'
Debug: Finishing transaction 12080
Debug: Storing state
Debug: Pruned old state cache entries in 0.00 seconds
Debug: Stored state in 0.01 seconds
Notice: Applied catalog in 0.03 seconds
Debug: Applying settings catalog for sections reporting, metrics
Debug: Finishing transaction 15340
Debug: Received report to process from b2053ca868f5
Debug: Processing report from b2053ca868f5 with processor Puppet::Reports::Store
puppet exited with 0
The text was updated successfully, but these errors were encountered:
OS Version: Windows 10
VSCode Version: 1.62.2
Puppet Extension Version: 1.4.0
PDK Version: 2.2.0
VSCode ist using the Dev Container: Puppet Development Kit (Community) when opening the Puppet module
Puppet Version: 7.10.0
What You Are Seeing?
Breakpoints are not hit.
What is Expected?
Classes are executed and breakpoints are hit, wenn debugging an .pp file. Even if there is no include for that file.
How Did You Get This To Happen? (Steps to Reproduce)
Conclusion before looking on the Output Log
My initial thought that the expansion will take care of that and debugging will work out of the box is clearly false or a bug. The fact that no tutorial or documentation ever mentions such a thing makes me suspucious.
I tried several approches.
I also tried a worldwide search to find some hints or whatever.
I found a mention that a class will not be executed without being included somewhere. This seems to be true even if using the debugger which is a bit counterintuitive.
It nearly kills the reason of this extention for me, that should take care of these things. But well comming that far I tried some approaches to add an include into the module so that the debugger will hit the breakpoint.
1.1) Well this does not feel right at all, even if debugging works
2.1) This feels the most natural solution, since examples should be added and debuger could run the examples file
2.2) However this approach results in an "Evaluation Error: Error while evaluating a Function Call, Could not find class ::nano for b2053ca868f5" Exception.
Output Log
The text was updated successfully, but these errors were encountered: